Skip to content

Instantly share code, notes, and snippets.

@WPprodigy
Created June 19, 2015 05:25
Show Gist options
  • Save WPprodigy/c24e88cd3904ad9ef41c to your computer and use it in GitHub Desktop.
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
// 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