pre_months_dropdown_query WordPress Filter Hook

The pre_months_dropdown_query hook is used to modify the SQL query used to generate the list of months for the WordPress dropdown menu. This hook is called before the query is executed.

apply_filters( 'pre_months_dropdown_query', object[]|false $months, string $post_type ) #

Filters to short-circuit performing the months dropdown query.


Parameters

$months

(object[]|false)'Months' drop-down results. Default false.

$post_type

(string)The post type.


Top ↑

Source

File: wp-admin/includes/class-wp-list-table.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
5.7.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.