Last active
October 4, 2018 07:38
-
-
Save AshlinRejo/f3c3026e524125639a4e18a55df8ebd2 to your computer and use it in GitHub Desktop.
Woo Discount Rules: Display rule in table even if condition doesn't matches
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @return boolean | |
* */ | |
function woo_discount_rules_rule_matches_to_display_in_table_method($matches, $product, $rule){ | |
//Check condition as required and return boolean value true/false | |
} | |
add_filter('woo_discount_rules_rule_matches_to_display_in_table', 'woo_discount_rules_rule_matches_to_display_in_table_method', 10, 3); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment