If you want to change the default shipping methods label name into a new label name in the WooCommerce cart, you can use the following code snippet.
function ts_shipping_method_labels( $label, $method ) { // You can customize the shipping method labels here switch ( $method->method_id ) { case 'free_shipping': $label = 'Standard Shipping'; break; case 'flat_rate': $label = 'Express Shipping'; break; case 'local_pickup': $label = 'Local Pickup Service'; break; // Add more cases for other shipping methods as needed } return $label; } add_filter( 'woocommerce_cart_shipping_method_full_label', 'ts_shipping_method_labels', 10, 2 );
Output
In the output below, the default label names of shipping methods are replaced with new labels: “Standard Shipping,” “Express Shipping,” and “Local Pickup Service.”
Additionally, if you want to show the details about every shipping method on the cart page, then you can follow this guide that will add a note below each shipping method in WooCommerce cart.