WooCommerce 设置 Ship to a Different Address 选中状态
source link: https://yjyj.net/learn/wordpress-learn/6265.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
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/
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK