Support

Home Forums WP User Integration "Login to see your registrations." [ESPRESSO_MY_EVENTS]

"Login to see your registrations." [ESPRESSO_MY_EVENTS]

Posted: February 22, 2018 at 10:36 am


RodeoCES

February 22, 2018 at 10:36 am

I have a custom url for my users to log in. When the non-logged in user selects the link above when trying to access [ESPRESSO_MY_EVENTS], they are redirected to the WP-login.php URL. I need them to go to http://www.mysite/login not http://www.mysite/wp-login.php.

What do you suggest the easiest method of redirecting this login link to go to my custom login URL?


Tony

  • Support Staff

February 22, 2018 at 1:49 pm

Hi there,

The easiest method is to go to:

Event Espresso -> Registration Form -> User Integration Settings

You’ll find the option ‘Registration Page URL (if different from default WordPress Registration)’.

Set your custom Registration URL there and EE will use that in place of the default.


RodeoCES

February 22, 2018 at 1:56 pm

Hello Tony,
That particular field in the User Integration Settings is already set up properly with the correct login URL. I copied the URL listed to tested it and it comes up correctly.


Tony

  • Support Staff

February 22, 2018 at 3:04 pm

My apologies, that URL isn’t currently used there as it’s a login url rather than a registration url.

However the link is filterable so you can use something like this:

https://github.com/eventespresso/ee-code-snippet-library/blob/master/addons/eea-wp-user/tw_ee_redirect_to_login_instructions.php

To return a message that does use the Registration Page URL set in the settings page, if nothing is set it will use the default. It also sets the redirect_to query string incase your custom login page uses it you can remove that if its unneeded.


RodeoCES

February 22, 2018 at 3:29 pm

Tony & team,
You guys/gals are awesome. The code you shared above worked exactly as requested. The “login to see your registrations” redirects to my custom URL. 🙂


Tony

  • Support Staff

February 22, 2018 at 4:08 pm

Great, I’m glad that worked for you.

Any further problems please let us know.

The support post ‘"Login to see your registrations." [ESPRESSO_MY_EVENTS]’ 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