To replace the word shipping which is more American to delivery the code below will work for you.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
add_filter( 'woocommerce_shipping_package_name', 'custom_shipping_package_name' ); function custom_shipping_package_name( $name ) { return 'Delivery'; } function fix_woocommerce_strings( $translated, $text) { // STRING 1 $translated = str_ireplace( 'Shipping', 'Delivery charge', $translated ); return $translated; } add_filter( 'gettext', 'fix_woocommerce_strings', 999, 3 ); |