filters – Woocommerce : How to automatically input “digits” phone number filed to woocommerce billing_phone filed for every order?


I use woocommmerce to sell online courses in my website. also I use a plugin called “Digits” to help users easily login/register using only their mobile phone numbers and OTP sent to them as sms.

So the login/register in our website, just requires entering mobile phone number.

and because of that, we removed billing_phone field from woocommerce checkout form because every user is required to register with their phone number even before accessing the checkout page.

the question is : how to automatically add the “digits” phone number to woocommerce billing_phone filed in every order using maybe some filters and/or hooks?

Erfan 1 year 2021-07-26T00:45:55-05:00 0 Answers 0 views 0

Leave an answer