months_dropdown_results WordPress Filter Hook
This hook is called when the months dropdown is used in the admin post list table. It allows you to modify the results of the query before they are displayed.
apply_filters( 'months_dropdown_results', object[] $months , string $post_type ) #
Filters the ‘Months’ drop-down results.
Parameters
- $months
(object[])Array of the months drop-down query results.
- $post_type
(string)The post type.
Source
Changelog
Version | Description |
---|---|
3.7.0 | Introduced. |