wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



pre_get_available_post_mime_types › Filtr WordPress Hooks

Od6.4.0
Przestarzałyn/a
› apply_filters( 'pre_get_available_post_mime_types', null, $type )
Parametry: (2)
  • () mime_types An array of MIME types. Default null.
    Wymagane: Tak
  • () type The post type name. Usually 'attachment' but can be any post type.
    Wymagane: Tak
Zdefiniowane na:
Codex:

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





Źródło

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