简体   繁体   中英

Add users to Woocommerce without email

I am using Woocommerce for a store. A plugin makes a request at this url

https://domain.ca/wc-api/v3/customers?...

And then receive an error:

ConstraintError: Unable to add key to index 'email': at least one key does not satisfy the uniqueness requirements.

I would like to know how I could bypass this error message. In other words, how could I modify Wordpress so that the email field is not required by Woocommerce?

You cannot have more than one user with the same email address by default in WordPress. You should try this plug-in which claims to override that functionality:

Allow Multiple Accounts

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM