Last active
October 7, 2019 10:01
-
-
Save xlplugins/2c0010193922b4567160ae03650e93d2 to your computer and use it in GitHub Desktop.
XL WooCommerce Sales Triggers plugin change priority of native action hook 'woocommerce_single_product_summary' for price 'woocommerce_template_single_price'. If any theme (Premium/ Custom) not using native price action hook i.e. removed. Then add below line on code in your theme (parent/ child) functions.php to get rid of default pricing.
This file contains 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
add_action('wp', 'theme_remove_native_pricing', 999); | |
if(!function_exists('theme_remove_native_pricing')) { | |
function theme_remove_native_pricing() { | |
remove_action('woocommerce_single_product_summary', 'woocommerce_template_single_price', 14.9); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment