On this page
apply_filters( 'months_dropdown_results', object[] $months, string $post_type )
Filters the ‘Months’ drop-down results.
Parameters
$monthsobject[]-
Array of the months drop-down query results.
$post_typestring-
The post type.
Source
File: wp-admin/includes/class-wp-list-table.php. View all references
$months = apply_filters( 'months_dropdown_results', $months, $post_type );
Related
Used By
| Used By | Description |
|---|---|
| WP_List_Table::months_dropdown() wp-admin/includes/class-wp-list-table.php | Displays a dropdown for filtering items in the list table by month. |
Changelog
| Version | Description |
|---|---|
| 3.7.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/months_dropdown_results