WordPress filter hook · part of WordPress core
disable_months_dropdown
A WordPress core filter that 82 plugins also fire themselves, running on 3.3M+ sites between them.
“Filters whether to remove the 'Months' drop-down from the post list table.”
How to use disable_months_dropdown
It's a filter: your callback receives the value and 1 more argument, and must return the (changed) value.
Add this to your theme's functions.php or a small custom plugin:
add_filter( 'disable_months_dropdown', function( $value, $post_type ) {
// Change $value here.
return $value;
}, 10, 2 );Argument names come from All-In-One Security (AIOS)'s source. Other plugins may pass different values: check the call in the plugin you're targeting below.
This hook is fired by WordPress core too. Official reference on developer.wordpress.org →
82 plugins that fire disable_months_dropdown
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
All-In-One Security (AIOS)1+ million installs
apply_filters( 'disable_months_dropdown', false, $post_type )admin/general/wp-security-ajax-data-table.php:707 -
Kadence Security700,000+ installs
apply_filters( 'disable_months_dropdown', false, $post_type )core/lib/class-itsec-wp-list-table.php:520 -
Popup Maker600,000+ installs
apply_filters( 'disable_months_dropdown', false, $post_type )classes/ListTable.php:573 -
Easy Updates Manager300,000+ installs
apply_filters( 'disable_months_dropdown', false, $post_type )includes/MPSUM_List_Table.php:549 -
Popup Builder200,000+ installs
apply_filters( 'disable_months_dropdown', false, $post_type )com/libs/ListTable.php:538 -
Anti-Spam, Spam FireWall by CleanTalk200,000+ installs
apply_filters( 'disable_months_dropdown', false, $post_type )lib/Cleantalk/ApbctWP/CleantalkListTable.php:604 -
Parsi Date100,000+ installs
apply_filters( 'disable_months_dropdown', false, $postType )inc/App/AppAssets.php:304 -
Strong Testimonials80,000+ installs
apply_filters( 'disable_months_dropdown', false, $post_type )admin/class-strong-testimonials-list-table.php:560 -
WP Data Access10,000+ installs
apply_filters( 'disable_months_dropdown', false, $post_type )WPDataAccess/Wordpress_Original/WP_List_Table.php:735 -
Unbounce Landing Pages10,000+ installs
apply_filters( 'disable_months_dropdown', false, $post_type )UBWPListTable.php:559 -
WP Simple Booking Calendar10,000+ installs
apply_filters( 'disable_months_dropdown', false, $post_type )includes/abstracts/abstract-class-list-table.php:546 -
WP Booking System10,000+ installs
apply_filters( 'disable_months_dropdown', false, $post_type )includes/abstracts/abstract-class-list-table.php:584 -
Affiliate Program Suite10,000+ installs
apply_filters( 'disable_months_dropdown', false, $post_type )includes/base/abstracts/abstract-class-list-table.php:568 -
Molongui Authorship10,000+ installs
apply_filters( 'disable_months_dropdown', false, $post_type )common/libraries/wp-list-table.php:377 -
Stripe Payment Forms by WP Full Pay8,000+ installs
apply_filters( 'disable_months_dropdown', false, $post_type )includes/wp/class-wp-list-table.php:512 -
Product Catalog Feed by PixelYourSite7,000+ installs
apply_filters( 'disable_months_dropdown', false, $post_type )inc/feed-list-table.php:550 -
Simple Discount Rules for Woocommerce4,000+ installs
apply_filters( 'disable_months_dropdown', false, $post_type )admin/class-woo-product-category-discount-list-table-original.php:716 -
oik2,000+ installs
apply_filters( 'disable_months_dropdown', false, $post_type )admin/class-bw-list-table.php:539 -
Abandoned Cart Reports For WooCommerce1,000+ installs
apply_filters( 'disable_months_dropdown', false, $post_type )admin/class-sfa-wp-list-table.php:555 -
WP Reroute Email1,000+ installs
apply_filters( 'disable_months_dropdown', false, $post_type )includes/class-wp-list-table.php:551 -
Smart Online Order for Clover1,000+ installs
apply_filters( 'disable_months_dropdown', false, $post_type )admin/includes/class-wp-list-table-moo.php:527 -
ImageRecycle pdf & image compression1,000+ installs
apply_filters( 'disable_months_dropdown', false, $post_type )class/wpio-table.php:239 -
Featured Image Pro Post Grid900+ installs
apply_filters( 'disable_months_dropdown', false, $post_type )advanced/wp-list-local.php:551 -
Order Bump for WooCommerce600+ installs
apply_filters( 'disable_months_dropdown', false, $post_type )includes/libraries/common/wp-list-table.php:273 -
Mail Baby SMTP500+ installs
apply_filters( 'disable_months_dropdown', false, $post_type )inc/templates/Sendgrid/WP_List_Table.php:1241 -
Code Manager500+ installs
apply_filters( 'disable_months_dropdown', false, $post_type )Code_Manager/WP_List_Table.php:727 -
Molongui Post Contributors: Multi-Role Contributor Attribution400+ installs
apply_filters( 'disable_months_dropdown', false, $post_type )common/libraries/wp-list-table.php:339 -
AI Popup300+ installs
apply_filters( 'disable_months_dropdown', false, $post_type )classes/dataTable/ListTable.php:528 -
f(x) Email Log300+ installs
apply_filters( 'disable_months_dropdown', false, $post_type )library/list-table-class.php:552 -
PAYONE WooCommerce300+ installs
apply_filters( 'disable_months_dropdown', false, $post_type )src/Wordpress/WP_List_Table.php:520 -
Easy Loyalty Points and Rewards for WooCommerce300+ installs
apply_filters( 'disable_months_dropdown', false, $post_type )includes/class-nujo-reward-points-wp-list-table.php:594 -
Form Data Collector200+ installs
apply_filters( 'disable_months_dropdown', false, $post_type )classes/class-wp-list-table.php:520 -
Logo Scheduler200+ installs
apply_filters( 'disable_months_dropdown', false, $post_type )inc/libraries/class-wp-list-table.php:527 -
PixMagix200+ installs
apply_filters( 'disable_months_dropdown', false, $post_type )includes/utils.php:311 -
Skyroom100+ installs
apply_filters( 'disable_months_dropdown', false, $post_type )src/Skyroom/Tables/WPListTable.php:583 -
ParrotPoster100+ installs
apply_filters( 'disable_months_dropdown', false, $post_type )src/WPListTable.php:617 -
WP VisitorFlow100+ installs
apply_filters( 'disable_months_dropdown', false, $post_type )includes/classes/class-wp-list-table-wpvf.php:535 -
Split Pay100+ installs
apply_filters( 'disable_months_dropdown', false, $post_type )includes/admin/list-tables/class-bsd-split-pay-stripe-connect-woo-wp-list-table.php:575 -
UNFC Nörmalize90+ installs
apply_filters( 'disable_months_dropdown', false, $post_type )includes/class-unfc-list-table.php:560 -
Flickr-stream90+ installs
apply_filters( 'disable_months_dropdown', false, $post_type )class/fsWPListTableBase.class.php:551 -
Tailored Tools70+ installs
apply_filters( 'disable_months_dropdown', false, $post_type )includes/class-wp-list-table.php:520 -
Review & Product Review by Review Builder70+ installs
apply_filters( 'disable_months_dropdown', false, $post_type )com/lib/ReviewList.php:535 -
Courier Notices50+ installs
apply_filters( 'disable_months_dropdown', false, $post_type )includes/Helper/WP_List_Table.php:575 -
Cliptakes40+ installs
apply_filters( 'disable_months_dropdown', false, $post_type )libraries/class-ct-list-table.php:575 -
Custom Job Fields for WP Job Manager30+ installs
apply_filters( 'disable_months_dropdown', false, $post_type )lib/class-wp-list-table.php:556 -
Pinpoll30+ installs
apply_filters( 'disable_months_dropdown', false, $post_type )admin/includes/class-wp-list-table.php:551 -
Admin Live Search20+ installs
apply_filters( 'disable_months_dropdown', false, $post_type )admin/admin-live-search-list-table.php:520 -
RingCentral Communications Plugin20+ installs
apply_filters( 'disable_months_dropdown', false, $post_type )includes/wp_list_class/class-wp-list-table.php:520 -
Gnaritas Amazon SES20+ installs
apply_filters( 'disable_months_dropdown', false, $post_type )classes/gn-wp-list-table.php:932 -
AffiliateImporterAI20+ installs
apply_filters( 'disable_months_dropdown', false, $post_type )src/Dnolbon/Wordpress/WpListTable.php:1272 -
xMoney Payments20+ installs
apply_filters( 'disable_months_dropdown', false, $post_type )includes/class-xmoney-payments-list-table.php:554 -
Affiliate AI Lite20+ installs
apply_filters( 'disable_months_dropdown', false, $post_type )lib/class-afx-wp-list-table.php:591 -
Feedier: Go beyond feedback10+ installs
apply_filters( 'disable_months_dropdown', false, $post_type )Feedier/Libraries/WP_List_Table.php:522 -
WP Attend10+ installs
apply_filters( 'disable_months_dropdown', false, $post_type )includes/libraries/class-wp-list-table.php:554 -
EasyContent10+ installs
apply_filters( 'disable_months_dropdown', false, $post_type )app/WP_List_Table.php:557 -
IP block10+ installs
apply_filters( 'disable_months_dropdown', false, $post_type )inc/WP_List_Table_Htaccess_Ip_Block.php:527 -
AffiliateImporterAm10+ installs
apply_filters( 'disable_months_dropdown', false, $post_type )src/Dnolbon/Aidn/Wordpress/WpListTable.php:1272 -
Linex Downloader10+ installs
apply_filters( 'disable_months_dropdown', false, $post_type )includes/class-linex-wp-list-table.php:520 -
Multisite Ticket System10+ installs
apply_filters( 'disable_months_dropdown', false, $post_type )class-wp-list-table.php:551 -
Poll, Poll Forms10+ installs
apply_filters( 'disable_months_dropdown', false, $post_type )com/helpers/dataTable/ListTable.php:528 -
WP Breadcrumb10+ installs
apply_filters( 'disable_months_dropdown', false, $post_type )com/lib/BreadcrumbList.php:536 -
Image and text animated headlines10+ installs
apply_filters( 'disable_months_dropdown', false, $post_type )class-wp-list-table.php:550 -
MediaView10+ installs
apply_filters( 'disable_months_dropdown', false, $post_type )src/View/WPListTableBaseView.php:554 -
Kloudymail Lead Generation10+ installs
apply_filters( 'disable_months_dropdown', false, $post_type )admin/class-wp-list-table.php:520 -
Realty Pack Core10+ installs
apply_filters( 'disable_months_dropdown', false, $post_type )models/admin/builder/wptable.php:560 -
Nomore404 404 Redirection and Firewall10+ installs
apply_filters( 'disable_months_dropdown', false, $post_type )includes/class-wp-list-table_saved.php:558 -
Popup Creator10+ installs
apply_filters( 'disable_months_dropdown', false, $post_type )class/DataTable/alphaconnect-tablelist.php:537 -
i-Search10+ installs
apply_filters( 'disable_months_dropdown', false, $post_type )admin/menu/class-wp-list-table-org.php:521 -
My Hitchhiking Spot Travel Map (MHS Travel Map)10+ installs
apply_filters( 'disable_months_dropdown', false, $post_type )admin/tables/class-wp-list-table-my.php:554 -
PushAll10+ installs
apply_filters( 'disable_months_dropdown', false, $post_type )includes/class-pushall-wp-list-table.php:527 -
Autoblog WPMagic10+ installs
apply_filters( 'disable_months_dropdown', false, $post_type )includes/class-wp-list-table.php:557 -
Term description by means of block editor10+ installs
apply_filters( 'disable_months_dropdown', false, $post_type )includes/class-wp-list-table.php:599 -
Affiliate BridgeFewer than 10 installs
apply_filters( 'disable_months_dropdown', false, $post_type )includes/imports/wp-list-table.php:562 -
Vounce AIFewer than 10 installs
apply_filters( 'disable_months_dropdown', false, $post_type )VounceAI_WP_List_Table.php:643 -
PlugTheme_ListFewer than 10 installs
apply_filters( 'disable_months_dropdown', false, $post_type )class-abhi-list-table.php:537 -
Awesome TrackerFewer than 10 installs
apply_filters( 'disable_months_dropdown', false, $post_type )inc/tables/class-wp-at-table.php:555 -
Rundiz DownloadsFewer than 10 installs
apply_filters( 'disable_months_dropdown', false, $post_type )App/Models/WPListTable.php:611 -
Technikelfe Unused Media FinderFewer than 10 installs
apply_filters( 'disable_months_dropdown', false, $post_type )rum_list_table.php:295 -
Gift Cards On Demand For WooCommerceFewer than 10 installs
apply_filters( 'disable_months_dropdown', false, $post_type )includes/class-list-table.php:572 -
Billplz Addon for Contact Form 7Fewer than 10 installs
apply_filters( 'disable_months_dropdown', false, $post_type )app/Lib/WP_List_Table.php:552 -
Hug Post View CounterFewer than 10 installs
apply_filters( 'disable_months_dropdown', false, $post_type )class-wp-list-table.php:554 -
WP Group SubscriptionsFewer than 10 installs
apply_filters( 'disable_months_dropdown', false, $post_type )core/admin/features/page/template/list-table/H4A_List_Table_Base.php:548
Need a customisation built on this hook?
Tell us what you want to change and which plugin it's for. We'll write it, test it and send it back as a small plugin.