ims_cart_action

Description

The “ims_cart_action” filter is used to modify the action attribute from the cart checkout form.

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

<?php add_filter( 'ims_cart_action', 'filter_function_name'); ?>

The hook is located in the image-store/_store/cart.php file.

Example

// Apply filter
function modify_ims_cart_action( $action, $ImStore ) {
return $output . "<p>my message</p>"; 
}
add_filter('ims_cart_action', 'modify_ims_cart_action');

Note: $action is a string, $ImStore is the global store object.


Comments

Leave a Reply

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