Support

Home Forums WP User Integration Manually adding registrations from the admin linking to WP user not working

Manually adding registrations from the admin linking to WP user not working

Posted: February 1, 2018 at 4:52 pm

Viewing 5 reply threads


HIL Tennis

February 1, 2018 at 4:52 pm

All our customers have to be logged in as a WP user before they can register for an event. Now this works well when they register for an event themselves. But if we add a customer to an event using the admin option “Add New Registrations” the user is not linked to the WP user. I have tried to sync the WP user account to the EE contact using the gist from @joshfeck https://gist.github.com/joshfeck/2165ff295c968f861cef8775fc8b1dc9 but as commented in the gist the method does not work anymore.


Josh

  • Support Staff

February 2, 2018 at 1:41 pm

The gist method still works for sites with WordPress 4.8 or lower. Since WordPress 4.9 includes breaking changes for the Debug bar console, the code included in that gist would have to be executed via command line or within a plugin. If adding the code to a plugin, the code can be run once on activation via the register_activation() hook.

https://codex.wordpress.org/Function_Reference/register_activation_hook


HIL Tennis

February 2, 2018 at 2:49 pm

Ok thx for explaining how to fix this Josh, but to me this should be something that should be unnecessary to do. Instead of having to manually link EE contacts with WP users I would expect activating the WP user plugin should link users automatically also when they are registered by an administrator?


Josh

  • Support Staff

February 2, 2018 at 3:28 pm

I understand your question, but when an administrator is adding registrations on the back-end, they are logged in with their own administrator account. So the registrations are not connected to their or anyone else’s account.

If you want to add a registration and have it linked to a specific user account, then you’ll need to log in as that user account. Alternatively you could use a plugin like “User Switcher” to temporarily switch to that user account, then register for the event on the front end.


HIL Tennis

February 2, 2018 at 3:48 pm

Alternatively you could use a plugin like “User Switcher” to temporarily switch to that user account, then register for the event on the front end

Yes I found out this is the only method that will work, but it’s a real pain to have to do this if you have a lot of registrations to enter. Most of our customers will register for or events themselves, but we do also have quite a few that for many different reasons need help to register. The admin registration option is a lot faster and easier!


Josh

  • Support Staff

February 2, 2018 at 5:00 pm

The admin registration option is faster and easier, but it doesn’t currently have the means to link registrations to the WP user.

Thanks for voting for the suggested feature on its trello card:

https://trello.com/c/3qDvvRgG/113-wp-user-integration-admin-side-registrations-add-ajaxified-text-field-that-autofills-for-existing-user-accounts

Viewing 5 reply threads

The support post ‘Manually adding registrations from the admin linking to WP user not working’ 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