How can i remove the shipping method label?

The name of the shipping method is displayed in the shopping cart, checkout and in the e-mails before the shipping costs. If there is only one shipping method, this presented designation may be superfluous.

Solution: With the following code snippet, which must be inserted in the function.php of the theme, this designation is removed.

add_filter( 'woocommerce_cart_shipping_method_full_label', 'bbloomer_remove_shipping_label', 10, 2 );

function bbloomer_remove_shipping_label($label, $method) {
$new_label = preg_replace( '/^.+:/', '', $label );
return $new_label;
Without cookies
This website does not use cookies or tracking. More information can be found in the privacy policy.