Filter hook 'mime_types'
in WP Core File wp-includes/functions.php at line 3404
Description
Filters the list of mime types and file extensions. This filter should be used to add, not remove, mime types. To remove mime types, use the {@see 'upload_mimes'} filter.
Occurrences
Filename |
Line Number |
wp-includes/functions.php |
3404 |
Parameters
Type |
Name |
Description |
string[] |
$wp_get_mime_types |
Mime types keyed by the file extension regex corresponding to those types. |
PHP Doc
/**
* Filters the list of mime types and file extensions.
*
* This filter should be used to add, not remove, mime types. To remove
* mime types, use the {@see 'upload_mimes'} filter.
*
* @since 3.5.0
*
* @param string[] $wp_get_mime_types Mime types keyed by the file extension regex
* corresponding to those types.
*/