Hi Ben,
You should use a blank plugin to add custom functions. I explain it in some depth here: http://youtu.be/pqe1RQ4peAM. It may be focused on EE4, but it applies for anyone who wants to add custom functions to WP.
Great video on how to create a custom function as a plugin, makes more sense too rather than being in the child theme.
So I’ve created the custom.php file, put the code in, saved it, then compressed as a .zip file, and uploaded it as a plugin. Can’t see it working as of yet.
During the registration page here- http://screencast.com/t/ij6sWoyzc3i
Will I need another custom function to pull the details from the 3rd party to add at registration stage?
Is this the function to use – ‘action_hook_espresso_update_event_meta’ ?
Did you activate the custom functions plugin? Usually it’s easier to have it set up and activated, then add the code you want over ftp.
The EE wp-user add-on should autofill those fields in the registration form if it finds those metadata fields.
Yes, the plugin is activated.
The EE wp-user add-on is activated, but the issue seems to have been that the data in the user profile is not populated, because the 3rd party ‘Paid Membership Pro’ has created another set of address data fields that are captured under ‘Shipping’. Basically their postal address to send something to, if need be.
Because the address data is in a new section in the User profile it has become apparent that’s why the EE add on will not pull the data through, I believe.
Consequently, this is why a custom plugin to pull the data from the 3rd party address fields, and mirror it into the EE address fields, is now what needs to be achieved.
Yes Sidney, I’ve got access to the wp_usermeta table, and I’ve had a look where the 3rd party data is kept, which is present with the correct request code – http://screencast.com/t/A7ObBuOgJnN8
Is there something else we need to look at?
Thanks.
But is there an entry for ‘event_espresso_address’? If there is not, then your custom script above is not copying the data to the right place.
You might want to run a one-time sql query to copy all the existing data (ie, saddress) to the ee fields for the same user.
These are all the fields available in the table for some users. These fields do vary, with Event Espresso appearing sometimes, and other times not, but I think that also goes for the other fields appearing, or not.
Just to provide a short update that the other 3rd party PMPRO Membership had a few bugs in it, which is what the support at PMPRO have been looking into. I still don’t have it finalised yet with them, but I will provide another update here with the code to share with you in the coming week.
Thanks.
Viewing 11 reply threads
The support post ‘WP User Intergation with User Profile for addresses (2)’ 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.
Support forum for Event Espresso 3 and Event Espresso 4.