disable_months_dropdown WordPress Filter Hook
The disable_months_dropdown hook allows you to disable the month dropdown in the WordPress admin interface. This can be useful if you want to force users to select a specific month when viewing your site.
apply_filters( 'disable_months_dropdown', bool $disable , string $post_type ) #
Filters whether to remove the ‘Months’ drop-down from the post list table.
Parameters
- $disable
(bool)Whether to disable the drop-down. Default false.
- $post_type
(string)The post type.
Source
Changelog
Version | Description |
---|---|
4.2.0 | Introduced. |