Black Friday & Cyber Monday SUPER SALE ALL WEEK:
Grab 40% OFF on plugins
00 Days
00 Hours
00 Minutes
00 Seconds

How to Change ‘Ship to a Different Address’ title WooCommerce?

Looking to change the WooCommerce checkout ‘Ship to a Different Address’ section title to anything else that you prefer? The below code snippet will help you to do it.

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
function ts_shipchange( $translated_text, $text, $domain ) {
switch ( $translated_text ) {
case 'Ship to a different address?' :
$translated_text = __( 'Select Delivery Address', 'woocommerce' );
break;
}
return $translated_text;
}
add_filter('gettext', 'ts_shipchange', 20, 3);
function ts_shipchange( $translated_text, $text, $domain ) { switch ( $translated_text ) { case 'Ship to a different address?' : $translated_text = __( 'Select Delivery Address', 'woocommerce' ); break; } return $translated_text; } add_filter('gettext', 'ts_shipchange', 20, 3);
function ts_shipchange( $translated_text, $text, $domain ) {
    switch ( $translated_text ) {
        case 'Ship to a different address?' :
            $translated_text = __( 'Select Delivery Address', 'woocommerce' );
            break;
    }
    return $translated_text;
}

add_filter('gettext', 'ts_shipchange', 20, 3);

Output

The code uses the gettext filter in WordPress to replace the string ‘Ship to a different address?’ with ‘Select Delivery Address’ in WooCommerce.

How to Change 'Ship to a Different Address' title WooCommerce?

Based on your store requirements you can also choose to hide the ship to different address checkbox in woocommerce when you feel its not required for customers who buys downloadable or virtual products.

Browse more in: Code Snippets, WooCommerce How Tos, WooCommerce Tutorials

Share It:

Subscribe
Notify of


0 Comments
Newest
Oldest
Inline Feedbacks
View all comments
reCaptcha Error: grecaptcha is not defined
0
Would love your thoughts, please comment.x
()
x
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible.

Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

By using our site, you acknowledge that you have read and understood our Privacy Policy and Terms & Conditions.