wordpress 插件 woocommerce高级使用
对界面结构进行修改:
只修改部分field
- billing address
add_filter('woocommerce_billing_fields', function ($billing_fields) {
unset($billing_fields['billing_email']);
return $billing_fields;
}, 10, 1);
- account details
add_filter('woocommerce_save_account_details_required_fields', function ($require_fields) {
unset($require_fields['account_email']);
return $require_fields;
}, 10, 1);
注account界面模板不使用apply_filters生成,所以需要先覆盖原界面再去除必要验证
标签:插件,woocommerce,界面,billing,fields,account,details From: https://www.cnblogs.com/fsgljk/p/17614465.html