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?](https://www.tychesoftwares.com/wp-content/uploads/2023/12/Changing-the-Ship-to-a-different-address-Open-By-default.png)
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.