The “ims_checkout_actions” filter is used to add additional button (actions) to the checkout form in the checkout page.

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

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

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


// Apply filter
function add_ims_checkout_actions( $output, $ImStoreCart, $options ) {
	return $output . '<input name="return" id="return" value="' . esc_attr__('Return') . '"  type="button" />';
add_filter('ims_checkout_actions', 'add_ims_checkout_actions');

Note:  $output is a HTML string, $ImStoreCart is the global cart object, $options is an associative array.

Leave a Reply

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