Black Friday & Cyber Monday SUPER SALE ALL WEEK:
Grab 40% OFF on plugins
Days
Hours
Minutes
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.

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
0
Would love your thoughts, please comment.x
()
x