widget_archives_dropdown_args WordPress Filter Hook
The widget_archives_dropdown_args hook allows you to modify the arguments for the Archives widget dropdown. This can be useful if you want to change the order of the items in the dropdown, or change the labels for the months or years.
apply_filters( 'widget_archives_dropdown_args', array $args , array $instance ) #
Filters the arguments for the Archives widget drop-down.
Description
See also
Parameters
- $args
(array)An array of Archives widget drop-down arguments.
- $instance
(array)Settings for the current Archives widget instance.
Source
Changelog
Version | Description |
---|---|
4.9.0 | Added the $instance parameter. |
2.8.0 | Introduced. |