Description
The “ims_image_row_actions_title” filter is used add actions (links / fields) to the image tite/caption column.
A plugin (or theme) can modify the display with the code:
<?php add_filter( 'ims_image_row_actions_title', 'filter_function_name' ); ?>
The hook is located in the image-store/_inc/galleries.php file.
Example
// Apply filter function add_ims_image_row_actions_title( $output, $image_id, $image_data, $attachment ) { return '<input type="text" name="photo_version" value="' . esc_attr( $image_data['photo_version'] ) . '" />"'; } add_filter('ims_image_row_actions_title', 'add_ims_image_row_actions_title');
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