pre_months_dropdown_query WordPress Filter Hook
The pre_months_dropdown_query hook is used to modify the SQL query used to generate the list of months for the WordPress dropdown menu. This hook is called before the query is executed.
apply_filters( 'pre_months_dropdown_query', object[]|false $months , string $post_type ) #
Filters to short-circuit performing the months dropdown query.
Parameters
- $months
(object[]|false)'Months' drop-down results. Default false.
- $post_type
(string)The post type.
Source
Changelog
Version | Description |
---|---|
5.7.0 | Introduced. |