• Hello, I currently have the following code:

    add_action('um_before_new_user_register', 'require_google_email_for_signup');
    function require_google_email_for_signup( $args ) {
    	extract($args);
    	if ( !strstr( $user_email, '@gmail.com' ) )
    		exit( wp_redirect( add_query_arg('err', 'you_must_have_googlemail') ) );
    }

    I was wondering how I can display a message to let users know that they need to have a gmail in this case? Thanks for the help.

    • This topic was modified 7 years, 7 months ago by jackmoody.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Add error message if email is not right type’ is closed to new replies.