WooCommerce 设置 Ship to a Different Address 选中状态

/** * @snippet Open Ship to Different Address @ Checkou…



/**
* @snippet Open Ship to Different Address @ Checkout Page
*/
add_filter( 'woocommerce_ship_to_different_address_checked', '__return_true' );


/**
* @snippet Close Ship to Different Address @ Checkout Page
*/
add_filter( 'woocommerce_ship_to_different_address_checked', '__return_false' );

感谢:

WooCommerce: “Ship to a Different Address” Opened by Default

More posts. You may also be interested in.