Description
The “ims_add_promotions” action runs after a new promotion has been added.
A plugin (or theme) can add an action with the code:
<?php add_action( 'ims_add_promotions', 'filter_function_name'); ?>
The hook is located in the image-store/_inc/pricing.php files.
Example
// apply action function action_ims_add_promotions( $promotion_id ) { //run action here } add_action('ims_add_promotions', 'action_ims_add_promotions');
Note: $promotion_id is an integer of the package created.
Leave a Reply