wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



media_library_months_with_files › WordPress Filter Hooks

Seit4.7.4
Veraltetn/v
apply_filters( 'media_library_months_with_files', null )
Parameter:
  • () months An array of objects with `month` and `year` properties, or `null` for default behavior.
    Erforderlich: Ja
Definiert in:
Codex:

Allows overriding the list of months displayed in the media library.

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.




Quellcode

$months = apply_filters( 'media_library_months_with_files', null );