Support

Home Forums Event Espresso Premium How to synchronize phone number of subscribers with their WP account

How to synchronize phone number of subscribers with their WP account

Posted: May 20, 2016 at 3:18 pm

Viewing 1 reply thread


JacquesMivi

May 20, 2016 at 3:18 pm

Hello,

I’m in the following menu: Event Espresso > Registration form >
Registration forms settings. I ticked the option “Always sync contact information with WP user profile”. It works well for the name, surname and the email: each time I want to subscribe to an event, these 3 informations fill automatically the dedicated fields.

I would like to do the same with a new field I added: phone number. I added the field “phone number” via the following menu: Event Espresso > Registration form > Question groups. Now, when I want to subscribe I have to enter my phone number. But I don’t want that users enter their phone number each time, I would like that phone number synchronize with their user account.

Do you know how I could do to get this result please?

Thanks a lot


Tony

  • Support Staff

May 23, 2016 at 7:35 am

Hi there,

“Always sync contact information with WP user profile”

It turns out that option only syncs up the First Name, Last Name and Email address with the WP Profile, not all questions.

I would like to do the same with a new field I added: phone number. I added the field “phone number” via the following menu: Event Espresso > Registration form > Question groups.

Event Espresso creates a ‘Phone Number’ system question assigned to the Address info question group by default, you can change that and add it to the Personal Infomration group to use that question by unchecking it from the Address question group and then adding it to Personal Info. (However as noted above it will not sync the details)

If you are using a custom question (as you are) you can use this snippet:

https://github.com/eventespresso/ee-code-snippet-library/blob/master/checkout/mn_wp_user_addon_save_custom_answers_too.php

Which basically pulls in the last used answer for any of your custom questions and auto fills them for the current registrations, would that work?

Viewing 1 reply thread

The support post ‘How to synchronize phone number of subscribers with their WP account’ 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.

Event Espresso