Filter used to provide a message on User Registration Addon if the email address already exists.


(string) Message that displays if email address has been used previously.



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.


 * Check email address exists.
 * @link
 * @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 in the email
    $msg = 'A user with that email already exists. Need to <a href="';
    $msg .= esc_url( wp_lostpassword_url() );
    $msg .= '"> reset your password?</a>';

    return $msg;

add_filter( 'wpforms_user_registration_email_exists', 'wpf_dev_user_registration_email_exists' );

Snippet Reference: How to Change Validation Messages for User Registration Addon