Description
The “ims_image_iptc_meta” filter is used to modify the image metadata array created after each image is uploaded.
A plugin (or theme) can modify the array with the code:
<?php add_filter( 'ims_image_iptc_meta', 'filter_function_name'); ?>
The hook is located in the image-store/_inc/admin.php file.
Example
// Apply filter
function add_ims_image_iptc_meta( $metadata, $file_path ) {
$metadata['2#131'] = 'orientation';
return $metadata;
}
add_filter('ims_image_iptc_meta', 'add_ims_image_iptc_meta');
Note: $metadata is is an associative array, $file_path is an string.
Leave a Reply