Description
The “ims_image_tag” filter is used to add HTML after each image tag.
A plugin (or theme) can modify the output with the code:
<?php add_filter( 'ims_image_tag', 'filter_function_name'); ?>
The hook is located in the image-store/_inc/store.php file.
Example
// Apply filter function change_ims_image_tag( $output, $data, $img_id, $size, $enc ) { return $output "<span>".__('text')."</span>" ; } add_filter('ims_image_tag', 'change_ims_image_tag');
Note: $output is an HTML string, $data is an associative array, $size is an integer, $enc is an string.
Leave a Reply