PHP for woo

add_filter( ‘woocommerce_shipping_package_name’, ‘custom_shipping_package_name’ );
function custom_shipping_package_name( $name ) {
return ‘Delivery’;
}

/**
* Changes the shipping label if the cost is $0
*
* @param string $label the shipping method label
* @param obj $method \WC_Shipping_Rate
* @return string – new shipping method label
*/
function sww_wc_free_shipping_label( $label, $method ) {

if ( 0 == $method->cost ) {
$label = ‘Free Delivery!’;
}

return $label;
}
add_filter( ‘woocommerce_cart_shipping_method_full_label’, ‘sww_wc_free_shipping_label’, 10, 2 );