Description
The “ims_image_row_image” filter is used modify the display of the image column.
A plugin (or theme) can modify the display with the code:
<?php add_filter( 'ims_image_row_image', 'filter_function_name' ); ?>
The hook is located in the image-store/_inc/galleries.php file.
Example
// Apply filter function add_ims_image_row_image( $output, $image_id, $image_data, $attachment ) { return $output . "<p>ID: $attachment->ID </p>" } add_filter('ims_image_row_image', 'add_ims_image_row_image');
Note: $output is a HTML string, $image_id is an integer, $image_data is multidimensional array returned by the “_wp_attachment_metadata” post meta option, $attachment is an object returned by get_post();
Leave a Reply