ims_base_image_url

Description

The “ims_base_image_url” filter is used to modify the url to the php script that securely displays the images in the front-end.

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

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

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

Example

// Apply filter
function change_ims_base_image_url( $base_url ) {
	//use custom script to display images in the front-end
	return "http://mydomain.com/myimage.php"; 
}
add_filter('ims_base_image_url', 'change_ims_base_image_url');

Note: $base_url is an full URL string.


Leave a Reply

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