ims_set_variables

Description

The “ims_set_variables” action runs after Image store options have been set in the global $ImStore object.

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

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

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

Example

// apply action
function add_set_variables( &$ImStore	 ) {
	if( $ImStore->opts['store'] ) // if store is active
		add_action( 'wp_print_scripts', 'add_store_javascript');
}
add_action('ims_set_variables', 'add_set_variables');

Note:  $ImStore is the global Image Store object.


Leave a Reply

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