Posted: March 6, 2017 at 9:07 am
|
Hi, we’ve used the phone number field to be mandatory for registrants but it doesn’t seem to populate their profile automatically as when a member registers to another event in the future, the phone number doesn’t populate automatically. We’re also using MemberPress as the membership solution. How can we ensure the phone number populates automatically? Thank you, |
Hi there, The phone number question you have as mandatory, is that the phone EE system question? I’m assuming your are using the EE4 User integration add-on to autofill the details? If so you can use this snippet: https://github.com/eventespresso/ee-code-snippet-library/blob/master/addons/eea-wp-user/jf_filter_address_answer_for_wpuser.php Which extends the autofill to include address questions (and the phone question). |
|
|
Yes, it’s the phone number within the “personal information” question group. Yes, I’m using the EE4 User integration add-on to autofill the details. Do I add this snippet on my functions.php on the child theme? |
You can, although I’d recommend creating a custom functions plugin and placing it within that: https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/ |
|
|
Hello, |
The function that updates the user profile is If you look within that function you’ll find 2 actions you can use to update the user:
Is fire when a new user is generated and allows you to update more information that EE does by default.
Is fired every time that above function is called and allows you to update additional details. If you take a look within |
|
The support post ‘Import phone number to WP user profile’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.