Skip to content

Instantly share code, notes, and snippets.

@jrick1229
Created March 31, 2021 16:20
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 jrick1229/fe4386e3a5fe1a103d24ae33eec35bbe to your computer and use it in GitHub Desktop.
Save jrick1229/fe4386e3a5fe1a103d24ae33eec35bbe to your computer and use it in GitHub Desktop.
Remove % from Product Add-Ons percentage based add-on
<?php
add_filter( 'woocommerce_product_addons_option_price', 'PAO_remove_percentage', 1);
function PAO_remove_percentage() {
$price_raw = '( . $price_prefix . $price_raw )';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment