months_dropdown_results WordPress Filter Hook

This hook is called when the months dropdown is used in the admin post list table. It allows you to modify the results of the query before they are displayed.

apply_filters( 'months_dropdown_results', object[] $months, string $post_type ) #

Filters the ‘Months’ drop-down results.


Parameters

$months

(object[])Array of the months drop-down query results.

$post_type

(string)The post type.


Top ↑

Source

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

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
3.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.