Last active
October 4, 2018 07:40
-
-
Save AshlinRejo/79a0772524e4ed95cf43547432d2808f to your computer and use it in GitHub Desktop.
Woo Discout Rules: For disable the variant strikeout through ajax
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
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