Description
The “ims_store_cart_actions” filter is used to add additional button (actions) to the cart form in the cart page.
A plugin (or theme) can modify the output with the code:
<?php add_filter( 'ims_store_cart_actions', 'filter_function_name'); ?>
The hook is located in the image-store/_store/cart.php file.
Example
// Apply filter function add_ims_store_cart_actions( $output, $ImStoreCart ) { return $output . '<input name="return" id="return" value="' . esc_attr__('Return') . '" type="button" />'; } add_filter('ims_store_cart_actions', 'add_ims_store_cart_actions');
Note: $output is a HTML string, $ImStoreCart is the global cart object.
Leave a Reply