Support

Home Forums Event Espresso Premium Email address error message

Email address error message

Posted: December 7, 2016 at 2:32 pm

Viewing 4 reply threads


modernearth

December 7, 2016 at 2:32 pm

When a non-member tries to sign up with an email already tied to a member and this error pops up

An error has occurred:
You have entered an email address that matches an existing user account in our system. If this is your email address, please log in before continuing your registration. Otherwise, register with a different email address.

My question is if there is a hook that allows me to change the text and remove the buttons from the message?


Josh

  • Support Staff

December 7, 2016 at 3:12 pm

The filter hook that you can use to change any text (where no specific filter exists, which is the case here) is the gettext filter hook. There’s some example code you can follow in the documentation that you can use to change this and other text string messages:

https://eventespresso.com/wiki/how-to-change-wording-with-poedit/

re: the buttons, those are not filterable, but they can be hidden with either CSS or jQuery.


modernearth

December 7, 2016 at 6:03 pm

And a function like that just goes into the functions.php file and then it should work? Or do I also have to place a call to the function on the page itself?


Tony

  • Support Staff

December 8, 2016 at 6:28 am

And a function like that just goes into the functions.php file and then it should work?

Correct.

You need to add the strings you wish to translate to the $strings array, in this case you could have:

$strings = array(
    'You have entered an email address that matches an existing user account in our system.  If this is your email address, please log in before continuing your registration. Otherwise, register with a different email address.' => 'Some custom text to replace that string here',
    // Add some more strings here
);

You do not need to place a call to the function itself as the function is hooking into the gettext filer using:

add_filter( 'gettext', 'mycustom_filter_gettext', 10, 3 );


modernearth

December 19, 2016 at 7:48 am

Thanks Tony!

Viewing 4 reply threads

The support post ‘Email address error message’ 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