Skip to content

Instantly share code, notes, and snippets.

@JeroenSormani
Last active April 20, 2016 11:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JeroenSormani/b1f96088c7f251836f7a to your computer and use it in GitHub Desktop.
Save JeroenSormani/b1f96088c7f251836f7a to your computer and use it in GitHub Desktop.
WooCommerce remove the colon from the shipping label.
<?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