A WordPress-centric search engine for devs and theme authors



disable_months_dropdown ›

Since4.2.0
Deprecatedn/a
apply_filters( 'disable_months_dropdown', false, $post_type )
Parameters: (2)
  • (bool) $disable Whether to disable the drop-down. Default false.
    Required: Yes
  • (string) $post_type The post type.
    Required: Yes
Defined at:
Codex:

Filters whether to remove the 'Months' drop-down from the post list table.





Source

if ( apply_filters( 'disable_months_dropdown', false, $post_type ) ) {