daily pastebin goal
32%
SHARE
TWEET

WooCommerce - Remove "Free" label from shipping optiosn

lorro Oct 26th, 2015 (edited) 14 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
Top