wp_read_image_metadata WordPress Filter Hook

The wp_read_image_metadata hook is used to read image metadata from an image file. This hook is used by the WordPress media uploader when a user uploads an image. It allows plugins to read and parse the image metadata to extract additional information about the image.

apply_filters( 'wp_read_image_metadata', array $meta, string $file, int $image_type, array $iptc, array $exif ) #

Filters the array of meta data read from an image’s exif data.


Parameters

$meta

(array)Image meta data.

$file

(string)Path to image file.

$image_type

(int)Type of image, one of the IMAGETYPE_XXX constants.

$iptc

(array)IPTC data.

$exif

(array)EXIF data.


Top ↑

Source

File: wp-admin/includes/image.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
5.0.0The $exif parameter was added.
4.4.0The $iptc parameter was added.
2.5.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.