I used wcmp and rest api to connect from mobile app. I have fields on my mobile app,
I want to save the data as pending. After I looked at the Vendors, this shows “No Vendor Application archive data!!”
It was because the wcmp_vendor_fields is empty.
Is there a way I can build the wcmp_vendor_fields value or map the values on wp_usermeta?
“wcmp_vendor_fields” is being generated by having all data that was being submitted via vendor registration form. We do allow admin to edit those data till the vendor is pending. Once any vendor becomes pending vendor to active vendor all these data will be saved as archive data.
Now, please check the fileds of vendor registartion form and populate the field as per your need.
But, I have my custom vendor registration form in my mobile app. Is there a way or a function that will build a wcmp_vendor_fields value?
I’d like to use update_user_meta($userID, 'wcmp_vendor_fields', $value);
The question is, how can I build the $value ?