ims_gallery_init

Description

The “ims_gallery_init” action runs after the Image Store gallery variables have been set.

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

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

The hook is located in the image-store/_inc/store.php and image-store/_inc/galleries.php files.

Example

// apply action
function add_ims_constants( $ImStore ) {
if( is_admin() )
add_action( 'admin_print_styles', 'add_admin_gallery_styles');
else 
add_action( 'wp_print_styles', 'add_front_gallery_styles');
}
add_action('ims_gallery_init', 'add_ims_constants');

Note: $ImStore is the global Image Store object.


Comments

Leave a Reply

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