check_upload_mimes


check_upload_mimes ( $mimes )

Parameters:
  • (array) mimes
Returns:
  • (array)
Defined at:
Change Log:
  • M: U

Description

Checks an array of MIME types against a list of allowed types.WordPress ships with a set of allowed upload filetypes, which is defined in wp-includes/functions.php in get_allowed_mime_types(). This function is used to filter that list against the filetypes allowed provided by Multisite Super Admins at wp-admin/network/settings.php.

Related Functions

check_upload_size, get_upload_iframe_src, media_upload_image, check_comment, media_upload_file

Top Google Results

User discussions

wpseek mobile