Created
August 5, 2014 20:31
-
-
Save roykho/1ff00214a1e10ac0cff4 to your computer and use it in GitHub Desktop.
WooCommerce: How to remove shipping label in cart and checkout
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
add_filter( 'woocommerce_cart_shipping_method_full_label', 'remove_shipping_label', 10, 2 ); | |
function remove_shipping_label( $label, $method ) { | |
$new_label = preg_replace( '/^.+:/', '', $label ); | |
return $new_label; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment