daily pastebin goal
47%
SHARE
TWEET

FoxyShop: Pricing Variation Filter

sparkweb Dec 13th, 2011 187 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //This will remove the parentheses from the price variation: XXL (+$2.00) becomes XXL +$2.00
  2. //Hook added in 3.7.2
  3.  
  4. add_filter('foxyshop_variation_price_change', 'my_foxyshop_variation_price_change');
  5. function my_foxyshop_variation_price_change($input) {
  6.         return str_replace(array("(", ")"), "", $input);
  7. }
  8.  
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top