The “ims_activate_gallery_hooks” filter is used to allow or disallow single-gallery hooks to run on other content types single plages. False is the default value.

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

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

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


// Apply filter
function allow_ims_activate_gallery_hooks( $bool ) {
	return true; 
add_filter('ims_activate_gallery_hooks', 'allow_ims_activate_gallery_hooks');

Note:  $bool is a boolean value.

Leave a Reply

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