wpseek.com
A WordPress-centric search engine for devs and theme authors



upload_mimes › WordPress Filter Hooks

Since2.0.0
Deprecatedn/a
apply_filters( 'upload_mimes', $t, $user )
Parameters: (2)
  • () t Mime types keyed by the file extension regex corresponding to those types.
    Required: Yes
  • () user User ID, User object or null if not provided (indicates current user).
    Required: Yes
Defined at:
Codex:

Filters the list of allowed mime types and file extensions.





Source

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