ims_image_key

Description

The “ims_image_key” filter is used to modify the encryption key used to hide the real image URL in the front-end.

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

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

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

Example

// Apply filter
function modify_ims_image_key( $key ) {
	return "iex778welsdahweilse876"; // add custom key 
}
add_filter('ims_image_key', 'modify_ims_image_key');

Note:  $key is an string of numbers and letters.


Leave a Reply

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