• Resolved garteth

    (@garteth)


    Hello
    Is there a way to make it so that there are no usernames on the website, and only an email address can be used to gain entry to the website?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Kim White

    (@kimwhite)

    Hello @garteth,

    The PMPro plugin does not include a feature that can do this, however, I have seen security plugins that offer this feature.

    This is a default WordPress behavior, so a 3rd party plugin may be able to do this for you.

    If you are able to do this and still need to change the text on the PMPro login page, you can use something like this:

    function my_pmpro_text_strings( $translated_text, $text, $domain ) {
    	switch ( $translated_text ) {
    		case 'Username or Email Address':
    			/* translators: a title above the login input field */
    			$translated_text = __( 'Email Address', 'paid-memberships-pro' );
    			break;
    		case 'Please enter your username or email address. You will receive a link to create a new password via email':
    			$translated_text = __( 'Please enter your email address. You will receive a link to create a new password via email', 'paid-memberships-pro' );
    			break;
    	}
    	return $translated_text;
    }
    add_filter( 'gettext', 'my_pmpro_text_strings', 20, 3 );

    Kim W

    Plugin Support Kim White

    (@kimwhite)

    Hello,
    I’ve tested this, and it worked on my test site.
    https://techpulsetoday.com/how-to-login-wordpress-with-email-only/

    I hope this helps to get you started.
    Kim W

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Email only login’ is closed to new replies.