Description
The “ims_permalink” filter is used to modify the image link.
A plugin (or theme) can modify the output with the code:
<?php add_filter( 'ims_permalink', 'filter_function_name'); ?>
The hook is located in the image-store/_inc/store.php file.
Example
// Apply filter
function change_ims_permalink( $link, $page, $encode ) {
if( $page == 'cart' )
return "http://custom/link/cart";
else
return $output;
}
add_filter('ims_permalink', 'change_ims_permalink');
Note: $link is an string, $page is a string , $encode is a boolean value.
Leave a Reply