A WordPress-centric search engine for devs and theme authors



upload_mimes ›

Since2.0.0
Deprecatedn/a
apply_filters( 'upload_mimes', $t, $user )
Parameters: (2)
  • (array) $t Mime types keyed by the file extension regex corresponding to those types. 'swf' and 'exe' removed from full list. 'htm|html' also removed depending on '$user' capabilities.
    Required: Yes
  • (int|WP_User|null) $user User ID, User object or null if not provided (indicates current user).
    Required: Yes
Defined at:
Codex:

Filters list of allowed mime types and file extensions.





Source

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