widget_archives_args WordPress Filter Hook
The widget_archives_args hook allows you to modify the arguments used in the WP_Widget_Archives class. This can be useful if you want to change the way the archives are displayed in the sidebar.
apply_filters( 'widget_archives_args', array $args , array $instance ) #
Filters the arguments for the Archives widget.
Description
See also
Parameters
- $args
(array)An array of Archives option arguments.
- $instance
(array)Array of settings for the current widget.
Source
Changelog
Version | Description |
---|---|
4.9.0 | Added the $instance parameter. |
2.8.0 | Introduced. |