ims_add_promotions

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.


Comments

Leave a Reply

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