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



pre_get_available_post_mime_types › WordPress Filter Hooks

Seit6.4.0
Veraltetn/v
apply_filters( 'pre_get_available_post_mime_types', null, $type )
Parameter: (2)
  • () mime_types An array of MIME types. Default null.
    Erforderlich: Ja
  • () type The post type name. Usually 'attachment' but can be any post type.
    Erforderlich: Ja
Definiert in:
Codex:

Filters the list of available post MIME types for the given post type.





Quellcode

$mime_types = apply_filters( 'pre_get_available_post_mime_types', null, $type );