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


/**
* @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' );

感谢:
https://www.businessbloomer.com/woocommerce-ship-different-address-open-default/

小 虾

哦也,我是小虾

相关推荐

WooCommerce 使用 PHP8

一个开了 WC 插件的小站切 PHP8 后报错, 找了大半天原因, 原来是 PHP 函数被禁用导致的 打开 putenv exec 就可以了 感谢: https://wordpress.org/support/topic/fatal-error-with-php-8-0-4/ ...