ims_image_link

Description

The “ims_image_link” filter is used to modify the image link.

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

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

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

Example

// Apply filter
function change_ims_image_link( $link, $data, $size ) {
if( empty( $data['caption'] ) )
return "http://custom/link"; 
else 
return $output;
}
add_filter('ims_image_link', 'change_ims_image_link');

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


Comments

Leave a Reply

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