ims_after_add_to_cart_{$action}

Description

The “ims_after_add_to_cart_{$action}” action runs after shopping cart has been updated or created (saved).

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

<?php add_action( 'ims_after_add_to_cart_{$action}', 'filter_function_name'); ?>

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

Example

// apply action
function action_ims_after_add_to_cart_update( $ImStoreCart ) {
//run action here 
}
add_action('ims_after_add_to_cart_update', 'action_ims_after_add_to_cart_update');

Note: $ImStoreCart is the global cart object.


Comments

Leave a Reply

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