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



upload_mimes › Filtr WordPress Hooks

Od2.0.0
Przestarzałyn/a
› apply_filters( 'upload_mimes', $t, $user )
Parametry: (2)
  • () t Mime types keyed by the file extension regex corresponding to those types.
    Wymagane: Tak
  • () user User ID, User object or null if not provided (indicates current user).
    Wymagane: Tak
Zdefiniowane na:
Codex:

Filters the list of allowed mime types and file extensions.





Źródło

return apply_filters( 'upload_mimes', $t, $user );