Last active
February 4, 2019 23:16
-
-
Save bekarice/fd28b55d09cd5f9ec10b 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