Forked from bekarice/wc-remove-shipping-free-label.php
Created
March 31, 2016 15:15
-
-
Save ampLocal/f47804ce6a54fd7a15958e8c9068479e to your computer and use it in GitHub Desktop.
Remove (Free) after WooCommerce free shipping methods
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Remove (Free) label on cart page for "Shipping and Handling" if cost is $0 | |
function wc_change_cart_shipping_free_label( $label ) { | |
$label = str_replace( "(Free)", " ", $label ); | |
return $label; | |
} | |
add_filter( 'woocommerce_cart_shipping_method_full_label' , 'wc_change_cart_shipping_free_label' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment