Skip to content

Instantly share code, notes, and snippets.

@xlplugins
Last active October 7, 2019 10:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xlplugins/2c0010193922b4567160ae03650e93d2 to your computer and use it in GitHub Desktop.
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.
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