Description
The “ims_rules_property” filter is used to add or remove promotions properties to check against like items, total and subtotal.
A plugin (or theme) can modify the array with the code:
<?php add_filter( 'ims_rules_property', 'filter_function_name' ); ?>
The hook is located in the image-store/_inc/core.php file.
Example
// Apply filter function add_ims_rules_property( $rules ) { $rules['gateway'] = __( 'Gateway' ); // add new promotion property return $rules; } add_filter('ims_rules_property', 'add_ims_rules_property');
Note: $rules is an associative array.
Leave a Reply