Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save AshlinRejo/79a0772524e4ed95cf43547432d2808f to your computer and use it in GitHub Desktop.
Save AshlinRejo/79a0772524e4ed95cf43547432d2808f to your computer and use it in GitHub Desktop.
Woo Discout Rules: For disable the variant strikeout through ajax
if(!function_exists('woo_discount_rules_run_variation_strikeout_through_ajax_method')){
function woo_discount_rules_run_variation_strikeout_through_ajax_method($do_ajax){
return false;
}
}
add_filter('woo_discount_rules_run_variation_strikeout_through_ajax', 'woo_discount_rules_run_variation_strikeout_through_ajax_method');
if(!function_exists('woo_discount_rules_run_variation_strike_out_with_ajax_method')){
/**
* Run variaion strikeout through ajax
*
* @param string $do_with_out_ajax
* @param object $product
* @return boolean
* */
function woo_discount_rules_run_variation_strike_out_with_ajax_method($do_with_out_ajax, $product){
return false;
}
}
add_filter('woo_discount_rules_run_variation_strike_out_with_ajax', 'woo_discount_rules_run_variation_strike_out_with_ajax_method', 10, 2);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment