wp_list_bookmarks
Filters the bookmarks list before it is echoed or returned.
Usage
add_filter( 'wp_list_bookmarks', 'wp_kama_list_bookmarks_filter' );
/**
* Function for `wp_list_bookmarks` filter-hook.
*
* @param string $html The HTML list of bookmarks.
*
* @return string
*/
function wp_kama_list_bookmarks_filter( $html ){
// filter...
return $html;
}
- $html(string)
- The HTML list of bookmarks.
Changelog
| Since 2.5.0 | Introduced. |
Where the hook is called
wp_list_bookmarks
wp-includes/bookmark-template.php 321
$html = apply_filters( 'wp_list_bookmarks', $output );