WordPress at Your Fingertips
filter is not described

pre_months_dropdown_query filter-hook . WP 5.7.0

Filters to short-circuit performing the months dropdown query.

Usage

add_filter( 'pre_months_dropdown_query', 'filter_function_name_8536', 10, 2 );
function filter_function_name_8536( $months, $post_type ){
	// filter...

	return $months;
}
$months(object[]|false)
'Months' drop-down results.
Default: false
$post_type(string)
The post type.

Changelog

Since 5.7.0 Introduced.

Where the hook is called

WP_List_Table::months_dropdown()
pre_months_dropdown_query
wp-admin/includes/class-wp-list-table.php 606
$months = apply_filters( 'pre_months_dropdown_query', false, $post_type );

Where in WP core the hook is used WordPress

Usage not found.