Skip to content

Instantly share code, notes, and snippets.

@bekarice
Last active February 4, 2019 23:16
Show Gist options
  • Save bekarice/fd28b55d09cd5f9ec10b to your computer and use it in GitHub Desktop.
Save bekarice/fd28b55d09cd5f9ec10b to your computer and use it in GitHub Desktop.
Remove (Free) after WooCommerce free shipping methods
//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