The “ims_get_gallery_images” action runs before the images from a gallery have been retrieved for display.

A plugin (or theme) can add an action with the code:

<?php add_action( 'ims_get_gallery_images', 'filter_function_name' ); ?>

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


// apply action
function action_ims_get_gallery_images( $ImStore, $posts_per_page, $offset ) {
	//run action here
add_action('ims_get_gallery_images', 'action_ims_get_gallery_images');

Note:  $ImStore is the global store object, $posts_per_page is an integer, $offset is an integer.

Leave a Reply

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