ims_before_add_to_cart

Description

The “ims_before_add_to_cart” action runs before an item is added to the shopping cart.

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

<?php add_action( 'ims_before_add_to_cart', 'filter_function_name'); ?>

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

Example

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

Note:  $ImStoreCart is the global cart object.


Leave a Reply

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