widget_links_args filter-hook . WP 2.6.0
Filters the arguments for the Links widget.
Usage
add_filter( 'widget_links_args', 'filter_function_name_2401', 10, 2 ); function filter_function_name_2401( $widget_links_args, $instance ){ // filter... return $widget_links_args; }
- $widget_links_args(array)
- An array of arguments to retrieve the links list.
- $instance(array)
- The settings for the particular instance of the widget.
Changelog
Since 2.6.0 | Introduced. |
Since 4.4.0 | Added the $instance parameter. |
Where the hook is called
widget_links_args
wp-includes/widgets/class-wp-widget-links.php 80
wp_list_bookmarks( apply_filters( 'widget_links_args', $widget_links_args, $instance ) );