最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

customization - woocommerce_checkout_fields modifying existing billing_phone label created new field

programmeradmin1浏览0评论

I am adding a filter for woocommerce_checkout_fields but instead of updating the existing field label it creates a duplicate field in the woocommerce-additional-fields section as shown in the image.

$fields['order']['billing_phone']['label'] = 'Mobile number (in resort contact number)';

return $fields;

I understood that this should override the existing field label -

Any pointers appreciated.

发布评论

评论列表(0)

  1. 暂无评论