wp_list_bookmarks
Filters the bookmarks list before it is echoed or returned.
Description
Parameters (2)
- 0. $array (callback) =>
array( $this, 'widget_content' )
- The array.
- 1. $int (int) =>
99
- The int.
Usage
- To run the hook, copy the example below.
- $array = apply_filters( 'wp_list_bookmarks', $array, $int );
- if ( !empty( $array ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the wp_list_bookmarks callback
- function filter_wp_list_bookmarks( $array, $int ) {
- // make filter magic happen here...
- return $array;
- };
- // add the filter
- add_filter( 'wp_list_bookmarks', 'filter_wp_list_bookmarks', 10, 2 );
- To remove a hook callback, use the example below.
- // remove the filter
- remove_filter( 'wp_list_bookmarks', 'filter_wp_list_bookmarks', 10, 2 );
Defined (1)
The filter is defined in the following location(s).
- /includes/frontend/events/class-events-php.php
- add_filter( 'wp_list_bookmarks', array( $this, 'widget_content' ), 99 );