Inline documentation for hooks in wp-includes/bookmark-template.php.
Props vinod dalvi, kpdesign. Fixes #25364. git-svn-id: https://develop.svn.wordpress.org/trunk@25533 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
63c1e0ed29
commit
4f54475853
|
@ -228,7 +228,15 @@ function wp_list_bookmarks($args = '') {
|
||||||
if ( empty($bookmarks) )
|
if ( empty($bookmarks) )
|
||||||
continue;
|
continue;
|
||||||
$output .= str_replace(array('%id', '%class'), array("linkcat-$cat->term_id", $class), $category_before);
|
$output .= str_replace(array('%id', '%class'), array("linkcat-$cat->term_id", $class), $category_before);
|
||||||
$catname = apply_filters( "link_category", $cat->name );
|
/**
|
||||||
|
* Filter the bookmarks category name.
|
||||||
|
*
|
||||||
|
* @since 2.2.0
|
||||||
|
*
|
||||||
|
* @param string $cat->name The category name of bookmarks.
|
||||||
|
*/
|
||||||
|
$catname = apply_filters( 'link_category', $cat->name );
|
||||||
|
|
||||||
$output .= "$title_before$catname$title_after\n\t<ul class='xoxo blogroll'>\n";
|
$output .= "$title_before$catname$title_after\n\t<ul class='xoxo blogroll'>\n";
|
||||||
$output .= _walk_bookmarks($bookmarks, $r);
|
$output .= _walk_bookmarks($bookmarks, $r);
|
||||||
$output .= "\n\t</ul>\n$category_after\n";
|
$output .= "\n\t</ul>\n$category_after\n";
|
||||||
|
@ -249,6 +257,13 @@ function wp_list_bookmarks($args = '') {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Filter the bookmarks list before it is echoed or returned.
|
||||||
|
*
|
||||||
|
* @since 2.5.0
|
||||||
|
*
|
||||||
|
* @param string $output The HTML list of bookmarks.
|
||||||
|
*/
|
||||||
$output = apply_filters( 'wp_list_bookmarks', $output );
|
$output = apply_filters( 'wp_list_bookmarks', $output );
|
||||||
|
|
||||||
if ( !$echo )
|
if ( !$echo )
|
||||||
|
|
Loading…
Reference in New Issue