wp_read_image_metadata_types хук-фильтрWP 2.5.0

Filters the image types to check for exif data.

Использование

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.

Список изменений

С версии 2.5.0 Введена.

Где вызывается хук

wp_read_image_metadata()
wp_read_image_metadata_types
wp-admin/includes/image.php 839
$exif_image_types = apply_filters( 'wp_read_image_metadata_types', array( IMAGETYPE_JPEG, IMAGETYPE_TIFF_II, IMAGETYPE_TIFF_MM ) );

Где используется хук в WordPress

Использование не найдено.