acf/get_image_mime_types
Filters the image MIME types allowed for image and gallery fields.
Usage
add_filter( 'acf/get_image_mime_types', 'wp_kama_acf_get_image_mime_types_filter' );
/**
* Function for `acf/get_image_mime_types` filter-hook.
*
* @param array $image_mimes The allowed image MIME types keyed by extension.
*
* @return array
*/
function wp_kama_acf_get_image_mime_types_filter( $image_mimes ){
// filter...
return $image_mimes;
}
- $image_mimes(array)
- The allowed image MIME types keyed by extension.
Changelog
| Since 6.8.7 | Introduced. |
Where the hook is called
acf/get_image_mime_types
acf/includes/api/api-helpers.php 3109
$image_mimes = apply_filters( 'acf/get_image_mime_types', $image_mimes );