Description
The “ims_image_tag_meta” filter is used to add HTML in the image metadata area, things like image name, description or caption.
A plugin (or theme) can modify the output with the code:
<?php add_filter( 'ims_image_tag_meta', 'filter_function_name'); ?>
The hook is located in the image-store/_inc/store.php file.
Example
// Apply filter function add_ims_image_tag_meta( $output, $data, $img_id, $size, $enc ) { return $output "<span>".__('extra image meta')."</span>" ; } add_filter('ims_image_tag_meta', 'add_ims_image_tag_meta');
Note: $output is an HTML string, $data is an associative array, $size is an integer, $enc is an string.
Leave a Reply