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

How to Open the “Ship to a Different Address” By Default in WooCommerce?

Are you looking to change the “Ship to Different Address” field open by default on the checkout page, then here is the solution.

add_filter( 'woocommerce_ship_to_different_address_checked', '__return_true' );

Output

The output below shows that the “Ship to a different address” field is expanded by default on the WooCommerce checkout page, with the corresponding checkbox already enabled.

How to Open the "Ship to Different Address" By Default in WooCommerce?

Sometimes, instead of having the shipping address option open by default, you can also hide the “Ship to a Different Address” Checkbox in WooCommerce checkout page.

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