ims_rules_logic

Description

The “ims_rules_logic” filter is used to add or remove promotions rules like equal, more and less.

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

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

The hook is located in the image-store/_inc/core.php file.

Example

// Apply filter
function add_ims_rules_logic( $rules ) {
$rules['twice'] = __( 'Twice' ); // add new promotion rule
return $rules; 
}
add_filter('ims_rules_logic', 'add_ims_rules_logic');

Note: $rules is an associative array.


Comments

Leave a Reply

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