Description
The “ims_before_save_cart_{$action}” action runs before shopping cart is updated or created (saved).
A plugin (or theme) can add an action with the code:
<?php add_action( 'ims_before_save_cart_{$action}', 'filter_function_name'); ?>
The hook is located in the image-store/_inc/car.php file.
Example
// apply action function action_ims_before_save_cart_update( $ImStoreCart ) { //run action here } add_action('ims_before_save_cart_update', 'action_ims_before_save_cart_update');
Note: $ImStoreCart is the global cart object.
Leave a Reply