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?
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:
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?
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:
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.
Support forum for Event Espresso 3 and Event Espresso 4.