Created
June 19, 2015 05:25
-
-
Save WPprodigy/c24e88cd3904ad9ef41c to your computer and use it in GitHub Desktop.
Remove '(Free)' or '(FREE!)' label text on cart page for Shipping and Handling if cost equal to $0
This file contains 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)' or '(FREE!)' label text on cart page for Shipping and Handling if cost equal to $0 | |
function woo_ninja_custom_shipping_free_label( $label ) { | |
$label = str_replace( "(Free)", "New Text Here", $label ); | |
$label = str_replace( "(FREE!)", "New Text Here", $label ); | |
return $label; | |
} | |
add_filter( 'woocommerce_cart_shipping_method_full_label' , 'woo_ninja_custom_shipping_free_label' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment