Last active
April 20, 2016 11:18
-
-
Save JeroenSormani/b1f96088c7f251836f7a to your computer and use it in GitHub Desktop.
WooCommerce remove the colon from the shipping label.
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
<?php | |
add_filter( 'woocommerce_cart_shipping_method_full_label', 'wc_remove_semicolon_shipping_label', 10, 2 ); | |
function wc_remove_semicolon_shipping_label( $label, $method ) { | |
$label = str_replace( ':', '', $label ); | |
return $label; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment