daily pastebin goal
7%
SHARE
TWEET

WooCommerce - Remove "Free" label from shipping optiosn

lorro Oct 26th, 2015 (edited) 16 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.   // code to remove "(Free)" from free shipping labels
  3.   // snippet goes in functions.php for your child theme
  4.   add_filter( 'woocommerce_cart_shipping_method_full_label', 'my_label', 8);
  5.   function my_label($label) {
  6.     return str_replace('(Free)', 'abcd', $label);
  7.   }
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