Created
January 1, 2021 15:50
-
-
Save ibrahimmumcu/862180ddd71e5a744ae1fc168fe7a9e5 to your computer and use it in GitHub Desktop.
Woocommerce - Remove "Fixed Price" label from shipping method on the cart page.
This file contains hidden or 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 | |
/* | |
* Remove "Fixed Price" label from shipping method on the cart page. | |
*/ | |
add_filter( 'woocommerce_cart_shipping_method_full_label', 'bbloomer_remove_shipping_label', 9999, 2 ); | |
function bbloomer_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