wp_read_image_metadata хук-фильтр . WP 2.5.0
Filters the array of meta data read from an image's exif data.
Использование
add_filter( 'wp_read_image_metadata', 'filter_function_name_6083', 10, 5 ); function filter_function_name_6083( $meta, $file, $image_type, $iptc, $exif ){ // filter... return $meta; }
- $meta(массив)
- Image meta data.
- $file(строка)
- Path to image file.
- $image_type(число)
- Type of image, one of the IMAGETYPE_XXX constants.
- $iptc(массив)
- IPTC data.
- $exif(массив)
- EXIF data.
Список изменений
С версии 2.5.0 | Введена. |
С версии 4.4.0 | The $iptc parameter was added. |
С версии 5.0.0 | The $exif parameter was added. |
Где вызывается хук
wp_read_image_metadata
wp-admin/includes/image.php 867
return apply_filters( 'wp_read_image_metadata', $meta, $file, $image_type, $iptc, $exif );