widget_links_args WordPress Filter Hook
The widget_links_args hook allows you to modify the arguments that are used when retrieving the links for a widget. This can be useful if you want to change the order in which the links are displayed, or if you want to limit the number of links that are displayed.
apply_filters( 'widget_links_args', array $widget_links_args , array $instance ) #
Filters the arguments for the Links widget.
Description
See also
Parameters
- $widget_links_args
(array)An array of arguments to retrieve the links list.
- $instance
(array)The settings for the particular instance of the widget.
Source
Changelog
Version | Description |
---|---|
4.4.0 | Added the $instance parameter. |
2.6.0 | Introduced. |