Description
Filter used to provide a message on User Registration Addon if the email address already exists.
Parameters
- $msg
- (string) Message that displays if email address has been used previously.
Source
wpforms-user-registration/class-user-registration.php
More Information
The wpforms_user_registration_email_exists
is used to display a message to the user if the email address already exists for another user.
Example
/** * Check email address exists. * * @link https://wpforms.com/developers/wpforms_user_registration_email_exists/ * * @param string $msg Message that displays if email exists. * @return string */ function wpf_dev_user_registration_email_exists( $msg ) { // This is the message that would appear $msg = __('We\'re sorry! A user with that email already exists. Please update the email address and try again!', 'text-domain'); return $msg; } add_filter( 'wpforms_user_registration_email_exists', 'wpf_dev_user_registration_email_exists', 10, 1 );
Related
Snippet Reference: How to Change Validation Messages for User Registration Addon