Can I populate buddypress profile fields in the registry simply with the field key?
If I get a third-party form that registers wordpress users, if I map the exact fields of buddypress would I be able to fill in these fields with this specific form?
Or is that not so simple?
Thank you for the question.
I do not see a proper solution available. I do see that there are options to allow the reverse(sync BuddyPress field to WordPress User meta) like this
But there are no plugin currently available to od it.
How could I do this with hooks, sorry to disturb you, I’m a layman and I’m looking to learn how to do it, I contacted the wcfm guys and they said I can fill the xprofile fields with hooks, I register on the form from wcfm and automatically fill in the xprofile data.
This would be the code
You have write your code on this hook – do_action (‘wcfm_membership_registration’, $ member_id, $ wcfm_membership_registration_form_data);
Here you will receive all data from Vendor registration form. Now save what you want to save in x-profile.
If you know the BuddyPress field id or label that you want to map, you can use
xprofile_set_field_data($id_or_field_name, $member_id, "value" );
Please make sure to change the $id_or_field_name and “value” with appropriate values.
You must be logged in to reply to this topic.