Description
The “ims_image_url” filter is used to modify the image href.
A plugin (or theme) can modify the output with the code:
<?php add_filter( 'ims_image_url', 'filter_function_name'); ?>
The hook is located in the image-store/_inc/store.php file.
Example
// Apply filter function modify_ims_image_url( $href, $image_id, $size ) { if( $image_id == 2234 ) return "http://custom/image.php?1=asdfe"; else return $href; } add_filter('ims_image_url', 'modify_ims_image_url');
Note: $href is an string, $image_id is an integer, $size is an integer.
Leave a Reply