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:

functions.php
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.

  1. All-In-One Security (AIOS) icon 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
  2. Kadence Security icon Kadence Security700,000+ installs apply_filters( 'disable_months_dropdown', false, $post_type ) core/lib/class-itsec-wp-list-table.php:520
  3. Popup Maker icon Popup Maker600,000+ installs apply_filters( 'disable_months_dropdown', false, $post_type ) classes/ListTable.php:573
  4. Easy Updates Manager icon Easy Updates Manager300,000+ installs apply_filters( 'disable_months_dropdown', false, $post_type ) includes/MPSUM_List_Table.php:549
  5. Popup Builder icon Popup Builder200,000+ installs apply_filters( 'disable_months_dropdown', false, $post_type ) com/libs/ListTable.php:538
  6. Anti-Spam, Spam FireWall by CleanTalk icon Anti-Spam, Spam FireWall by CleanTalk200,000+ installs apply_filters( 'disable_months_dropdown', false, $post_type ) lib/Cleantalk/ApbctWP/CleantalkListTable.php:604
  7. Parsi Date icon Parsi Date100,000+ installs apply_filters( 'disable_months_dropdown', false, $postType ) inc/App/AppAssets.php:304
  8. Strong Testimonials icon Strong Testimonials80,000+ installs apply_filters( 'disable_months_dropdown', false, $post_type ) admin/class-strong-testimonials-list-table.php:560
  9. WP Data Access icon WP Data Access10,000+ installs apply_filters( 'disable_months_dropdown', false, $post_type ) WPDataAccess/Wordpress_Original/WP_List_Table.php:735
  10. Unbounce Landing Pages icon Unbounce Landing Pages10,000+ installs apply_filters( 'disable_months_dropdown', false, $post_type ) UBWPListTable.php:559
  11. WP Simple Booking Calendar icon WP Simple Booking Calendar10,000+ installs apply_filters( 'disable_months_dropdown', false, $post_type ) includes/abstracts/abstract-class-list-table.php:546
  12. WP Booking System icon WP Booking System10,000+ installs apply_filters( 'disable_months_dropdown', false, $post_type ) includes/abstracts/abstract-class-list-table.php:584
  13. Affiliate Program Suite icon Affiliate Program Suite10,000+ installs apply_filters( 'disable_months_dropdown', false, $post_type ) includes/base/abstracts/abstract-class-list-table.php:568
  14. Molongui Authorship icon Molongui Authorship10,000+ installs apply_filters( 'disable_months_dropdown', false, $post_type ) common/libraries/wp-list-table.php:377
  15. Stripe Payment Forms by WP Full Pay icon 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
  16. Product Catalog Feed by PixelYourSite icon Product Catalog Feed by PixelYourSite7,000+ installs apply_filters( 'disable_months_dropdown', false, $post_type ) inc/feed-list-table.php:550
  17. Simple Discount Rules for Woocommerce icon 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
  18. oik icon oik2,000+ installs apply_filters( 'disable_months_dropdown', false, $post_type ) admin/class-bw-list-table.php:539
  19. Abandoned Cart Reports For WooCommerce icon Abandoned Cart Reports For WooCommerce1,000+ installs apply_filters( 'disable_months_dropdown', false, $post_type ) admin/class-sfa-wp-list-table.php:555
  20. WP Reroute Email icon WP Reroute Email1,000+ installs apply_filters( 'disable_months_dropdown', false, $post_type ) includes/class-wp-list-table.php:551
  21. Smart Online Order for Clover icon Smart Online Order for Clover1,000+ installs apply_filters( 'disable_months_dropdown', false, $post_type ) admin/includes/class-wp-list-table-moo.php:527
  22. ImageRecycle pdf & image compression icon ImageRecycle pdf & image compression1,000+ installs apply_filters( 'disable_months_dropdown', false, $post_type ) class/wpio-table.php:239
  23. Featured Image Pro Post Grid icon Featured Image Pro Post Grid900+ installs apply_filters( 'disable_months_dropdown', false, $post_type ) advanced/wp-list-local.php:551
  24. Order Bump for WooCommerce icon Order Bump for WooCommerce600+ installs apply_filters( 'disable_months_dropdown', false, $post_type ) includes/libraries/common/wp-list-table.php:273
  25. Mail Baby SMTP icon Mail Baby SMTP500+ installs apply_filters( 'disable_months_dropdown', false, $post_type ) inc/templates/Sendgrid/WP_List_Table.php:1241
  26. Code Manager icon Code Manager500+ installs apply_filters( 'disable_months_dropdown', false, $post_type ) Code_Manager/WP_List_Table.php:727
  27. Molongui Post Contributors: Multi-Role Contributor Attribution icon Molongui Post Contributors: Multi-Role Contributor Attribution400+ installs apply_filters( 'disable_months_dropdown', false, $post_type ) common/libraries/wp-list-table.php:339
  28. AI Popup icon AI Popup300+ installs apply_filters( 'disable_months_dropdown', false, $post_type ) classes/dataTable/ListTable.php:528
  29. f(x) Email Log icon f(x) Email Log300+ installs apply_filters( 'disable_months_dropdown', false, $post_type ) library/list-table-class.php:552
  30. PAYONE WooCommerce icon PAYONE WooCommerce300+ installs apply_filters( 'disable_months_dropdown', false, $post_type ) src/Wordpress/WP_List_Table.php:520
  31. Easy Loyalty Points and Rewards for WooCommerce icon 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
  32. Form Data Collector icon Form Data Collector200+ installs apply_filters( 'disable_months_dropdown', false, $post_type ) classes/class-wp-list-table.php:520
  33. Logo Scheduler icon Logo Scheduler200+ installs apply_filters( 'disable_months_dropdown', false, $post_type ) inc/libraries/class-wp-list-table.php:527
  34. PixMagix icon PixMagix200+ installs apply_filters( 'disable_months_dropdown', false, $post_type ) includes/utils.php:311
  35. Skyroom icon Skyroom100+ installs apply_filters( 'disable_months_dropdown', false, $post_type ) src/Skyroom/Tables/WPListTable.php:583
  36. ParrotPoster icon ParrotPoster100+ installs apply_filters( 'disable_months_dropdown', false, $post_type ) src/WPListTable.php:617
  37. WP VisitorFlow icon WP VisitorFlow100+ installs apply_filters( 'disable_months_dropdown', false, $post_type ) includes/classes/class-wp-list-table-wpvf.php:535
  38. Split Pay icon 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
  39. UNFC Nörmalize icon UNFC Nörmalize90+ installs apply_filters( 'disable_months_dropdown', false, $post_type ) includes/class-unfc-list-table.php:560
  40. Flickr-stream icon Flickr-stream90+ installs apply_filters( 'disable_months_dropdown', false, $post_type ) class/fsWPListTableBase.class.php:551
  41. Tailored Tools icon Tailored Tools70+ installs apply_filters( 'disable_months_dropdown', false, $post_type ) includes/class-wp-list-table.php:520
  42. Review & Product Review by Review Builder icon Review & Product Review by Review Builder70+ installs apply_filters( 'disable_months_dropdown', false, $post_type ) com/lib/ReviewList.php:535
  43. Courier Notices icon Courier Notices50+ installs apply_filters( 'disable_months_dropdown', false, $post_type ) includes/Helper/WP_List_Table.php:575
  44. Cliptakes icon Cliptakes40+ installs apply_filters( 'disable_months_dropdown', false, $post_type ) libraries/class-ct-list-table.php:575
  45. Custom Job Fields for WP Job Manager icon Custom Job Fields for WP Job Manager30+ installs apply_filters( 'disable_months_dropdown', false, $post_type ) lib/class-wp-list-table.php:556
  46. Pinpoll icon Pinpoll30+ installs apply_filters( 'disable_months_dropdown', false, $post_type ) admin/includes/class-wp-list-table.php:551
  47. Admin Live Search icon Admin Live Search20+ installs apply_filters( 'disable_months_dropdown', false, $post_type ) admin/admin-live-search-list-table.php:520
  48. RingCentral Communications Plugin icon RingCentral Communications Plugin20+ installs apply_filters( 'disable_months_dropdown', false, $post_type ) includes/wp_list_class/class-wp-list-table.php:520
  49. Gnaritas Amazon SES icon Gnaritas Amazon SES20+ installs apply_filters( 'disable_months_dropdown', false, $post_type ) classes/gn-wp-list-table.php:932
  50. AffiliateImporterAI icon AffiliateImporterAI20+ installs apply_filters( 'disable_months_dropdown', false, $post_type ) src/Dnolbon/Wordpress/WpListTable.php:1272
  51. xMoney Payments icon xMoney Payments20+ installs apply_filters( 'disable_months_dropdown', false, $post_type ) includes/class-xmoney-payments-list-table.php:554
  52. Affiliate AI Lite icon Affiliate AI Lite20+ installs apply_filters( 'disable_months_dropdown', false, $post_type ) lib/class-afx-wp-list-table.php:591
  53. Feedier: Go beyond feedback icon Feedier: Go beyond feedback10+ installs apply_filters( 'disable_months_dropdown', false, $post_type ) Feedier/Libraries/WP_List_Table.php:522
  54. WP Attend icon WP Attend10+ installs apply_filters( 'disable_months_dropdown', false, $post_type ) includes/libraries/class-wp-list-table.php:554
  55. EasyContent icon EasyContent10+ installs apply_filters( 'disable_months_dropdown', false, $post_type ) app/WP_List_Table.php:557
  56. IP block icon IP block10+ installs apply_filters( 'disable_months_dropdown', false, $post_type ) inc/WP_List_Table_Htaccess_Ip_Block.php:527
  57. AffiliateImporterAm icon AffiliateImporterAm10+ installs apply_filters( 'disable_months_dropdown', false, $post_type ) src/Dnolbon/Aidn/Wordpress/WpListTable.php:1272
  58. Linex Downloader icon Linex Downloader10+ installs apply_filters( 'disable_months_dropdown', false, $post_type ) includes/class-linex-wp-list-table.php:520
  59. Multisite Ticket System icon Multisite Ticket System10+ installs apply_filters( 'disable_months_dropdown', false, $post_type ) class-wp-list-table.php:551
  60. Poll, Poll Forms icon Poll, Poll Forms10+ installs apply_filters( 'disable_months_dropdown', false, $post_type ) com/helpers/dataTable/ListTable.php:528
  61. WP Breadcrumb icon WP Breadcrumb10+ installs apply_filters( 'disable_months_dropdown', false, $post_type ) com/lib/BreadcrumbList.php:536
  62. Image and text animated headlines icon Image and text animated headlines10+ installs apply_filters( 'disable_months_dropdown', false, $post_type ) class-wp-list-table.php:550
  63. MediaView icon MediaView10+ installs apply_filters( 'disable_months_dropdown', false, $post_type ) src/View/WPListTableBaseView.php:554
  64. Kloudymail Lead Generation icon Kloudymail Lead Generation10+ installs apply_filters( 'disable_months_dropdown', false, $post_type ) admin/class-wp-list-table.php:520
  65. Realty Pack Core icon Realty Pack Core10+ installs apply_filters( 'disable_months_dropdown', false, $post_type ) models/admin/builder/wptable.php:560
  66. Nomore404 404 Redirection and Firewall icon Nomore404 404 Redirection and Firewall10+ installs apply_filters( 'disable_months_dropdown', false, $post_type ) includes/class-wp-list-table_saved.php:558
  67. Popup Creator icon Popup Creator10+ installs apply_filters( 'disable_months_dropdown', false, $post_type ) class/DataTable/alphaconnect-tablelist.php:537
  68. i-Search icon i-Search10+ installs apply_filters( 'disable_months_dropdown', false, $post_type ) admin/menu/class-wp-list-table-org.php:521
  69. My Hitchhiking Spot Travel Map (MHS Travel Map) icon 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
  70. PushAll icon PushAll10+ installs apply_filters( 'disable_months_dropdown', false, $post_type ) includes/class-pushall-wp-list-table.php:527
  71. Autoblog WPMagic icon Autoblog WPMagic10+ installs apply_filters( 'disable_months_dropdown', false, $post_type ) includes/class-wp-list-table.php:557
  72. Term description by means of block editor icon Term description by means of block editor10+ installs apply_filters( 'disable_months_dropdown', false, $post_type ) includes/class-wp-list-table.php:599
  73. Affiliate Bridge icon Affiliate BridgeFewer than 10 installs apply_filters( 'disable_months_dropdown', false, $post_type ) includes/imports/wp-list-table.php:562
  74. Vounce AI icon Vounce AIFewer than 10 installs apply_filters( 'disable_months_dropdown', false, $post_type ) VounceAI_WP_List_Table.php:643
  75. PlugTheme_List icon PlugTheme_ListFewer than 10 installs apply_filters( 'disable_months_dropdown', false, $post_type ) class-abhi-list-table.php:537
  76. Awesome Tracker icon Awesome TrackerFewer than 10 installs apply_filters( 'disable_months_dropdown', false, $post_type ) inc/tables/class-wp-at-table.php:555
  77. Rundiz Downloads icon Rundiz DownloadsFewer than 10 installs apply_filters( 'disable_months_dropdown', false, $post_type ) App/Models/WPListTable.php:611
  78. Technikelfe Unused Media Finder icon Technikelfe Unused Media FinderFewer than 10 installs apply_filters( 'disable_months_dropdown', false, $post_type ) rum_list_table.php:295
  79. Gift Cards On Demand For WooCommerce icon Gift Cards On Demand For WooCommerceFewer than 10 installs apply_filters( 'disable_months_dropdown', false, $post_type ) includes/class-list-table.php:572
  80. Billplz Addon for Contact Form 7 icon Billplz Addon for Contact Form 7Fewer than 10 installs apply_filters( 'disable_months_dropdown', false, $post_type ) app/Lib/WP_List_Table.php:552
  81. Hug Post View Counter icon Hug Post View CounterFewer than 10 installs apply_filters( 'disable_months_dropdown', false, $post_type ) class-wp-list-table.php:554
  82. WP Group Subscriptions icon 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.