Description
The “ims_define_constants” action runs just before image store constants are defined.
A plugin (or theme) can add an action with the code:
<?php add_action( 'ims_define_constants', 'filter_function_name'); ?>
The hook is located in the image-store/_inc/core.php file.
Example
// apply action function add_ims_constants( $ImStore ) { define( 'IMSTORE_CONTANT', 'activate' ); } add_action('ims_define_constants', 'add_ims_constants');
Note: $ImStore is the global Image Store object.
Leave a Reply