Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save AshlinRejo/7f57522e0bfea5f9ff03a5a56e5b78ce to your computer and use it in GitHub Desktop.
Save AshlinRejo/7f57522e0bfea5f9ff03a5a56e5b78ce to your computer and use it in GitHub Desktop.
Woo Discout Rules: Change style for the zero value coupon
if(!function_exists('woo_discount_rules_apply_style_for_zero_price_coupon_method')){
function woo_discount_rules_apply_style_for_zero_price_coupon_method($style, $coupon){
//Return the css as required based on $coupon
}
}
add_filter('woo_discount_rules_apply_style_for_zero_price_coupon', 'woo_discount_rules_apply_style_for_zero_price_coupon_method', 10, 2);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment