wp_list_bookmarks
Filter HookDescription
Filters the bookmarks list before it is echoed or returned.Hook Information
File Location |
wp-includes/bookmark-template.php
View on GitHub
|
Hook Type | Filter |
Line Number | 321 |
Hook Parameters
Type | Name | Description |
---|---|---|
string
|
$html
|
The HTML list of bookmarks. |
Usage Examples
Basic Usage
<?php
// Hook into wp_list_bookmarks
add_filter('wp_list_bookmarks', 'my_custom_filter', 10, 1);
function my_custom_filter($html) {
// Your custom filtering logic here
return $html;
}
Source Code Context
wp-includes/bookmark-template.php:321
- How this hook is used in WordPress core
<?php
316 *
317 * @since 2.5.0
318 *
319 * @param string $html The HTML list of bookmarks.
320 */
321 $html = apply_filters( 'wp_list_bookmarks', $output );
322
323 if ( $parsed_args['echo'] ) {
324 echo $html;
325 } else {
326 return $html;
PHP Documentation
<?php
/**
* Filters the bookmarks list before it is echoed or returned.
*
* @since 2.5.0
*
* @param string $html The HTML list of bookmarks.
*/
Quick Info
- Hook Type: Filter
- Parameters: 1
- File: wp-includes/bookmark-template.php
Related Hooks
Related hooks will be displayed here in future updates.