Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save AshlinRejo/f3c3026e524125639a4e18a55df8ebd2 to your computer and use it in GitHub Desktop.
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
/**
* @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