ims_empty_car

Description

The “ims_empty_car” filter is used to allow or disallow to display the empty cart message. If false the cart form will now show.

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

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

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

Example

// Apply filter
function is_ims_empty_car( $bool, $ImStoreCart ) {
	return true;
}
add_filter('ims_empty_car', 'is_ims_empty_car');

Note:  $bool is a boolean value, $ImStoreCart is the global cart object.


Leave a Reply

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