ims_image_data

Description

The “ims_image_data” filter is used to modify the image metadata.

A plugin (or theme) can modify the array with the code:

<?php add_filter( 'ims_image_data', 'filter_function_name'); ?>

The hook is located in the image-store/_inc/store.php file.

Example

// Apply filter
function modify_ims_image_data( $data, $size  ) {
	$data['custom-data'] = "data";
	return $data;
}
add_filter('ims_image_data', 'modify_ims_image_data');

Note:  $data is an associative array, $size is a integer.


Leave a Reply

Your email address will not be published. Required fields are marked *