“Ship to a different address?” starts unticked
The checkout’s “Ship to a different address?” box always starts unticked, so the shipping fields stay hidden unless the customer needs them.
<?php
add_filter( 'woocommerce_ship_to_different_address_checked', '__return_false' );
Good to know
For the classic cart and checkout (the [woocommerce_cart] and [woocommerce_checkout] shortcodes). The block cart and checkout don’t use these hooks.
In these packs
- WooCommerce: cart and checkout: Free-shipping progress, coupon links, quantity limits and a cleaner checkout.