Allows overriding the list of months displayed in the media library.
Description
By default (if this filter does not return an array), a query will be run to determine the months that have media items. This query can be expensive for large media libraries, so it may be desirable for sites to override this behavior.
Parameters
$monthsstdClass[]|null- An array of objects with
monthandyearproperties, ornullfor default behavior.
Source
$response['meta'][ $key ] = false;
Changelog
| Version | Description |
|---|---|
| 4.7.4 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.