wp_read_image_metadata_types
Filters the image types to check for exif data.
Usage
add_filter( 'wp_read_image_metadata_types', 'wp_kama_read_image_metadata_types_filter' ); /** * Function for `wp_read_image_metadata_types` filter-hook. * * @param int[] $image_types Array of image types to check for exif data. Each value is usually one of the `IMAGETYPE_*` constants. * * @return int[] */ function wp_kama_read_image_metadata_types_filter( $image_types ){ // filter... return $image_types; }
- $image_types(int[])
- Array of image types to check for exif data. Each value is usually one of the IMAGETYPE_* constants.
Changelog
Since 2.5.0 | Introduced. |
Where the hook is called
wp_read_image_metadata_types
wp-admin/includes/image.php 905
$exif_image_types = apply_filters( 'wp_read_image_metadata_types', array( IMAGETYPE_JPEG, IMAGETYPE_TIFF_II, IMAGETYPE_TIFF_MM ) );