Close “Ship to A Different Address” by Default WooCommerce Checkout

Share Now

# PHP Snippet: Open “Ship to A Different Address” by Default @ WooCommerce Checkout
add this code on functions.php

add_filter( 'woocommerce_ship_to_different_address_checked', '__return_true' );

# PHP Snippet: Close “Ship to A Different Address” by Default @ WooCommerce Checkout
add this code on functions.php

add_filter( 'woocommerce_ship_to_different_address_checked', '__return_false' );

*** Main Article: https://www.businessbloomer.com/woocommerce-ship-different-address-open-default/

Picture of Nahid Mahamud

Nahid Mahamud

Web Developer | Graphic Designer | WordPress & Woo-commerce Expert