• Hi wordpreess recently upgraded me and now it is not recognizing my email address so I can not log in ?

    I have tried the only 3 emails I use so its not that im typing in the wrong email it is saying none of them are right ??

    Can someone recommend a solution to this please and thank you

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello wallstreetpro7,
    If you are able to login into wordpress by your email account:
    Write this code in functions.php with a different username and email ID:

    function add_admin_acct(){
     $login = 'username';
     $passw = 'passwrod';
     $email = 'myacct1@mydomain.com';
    
     if ( !username_exists( $login )  && !email_exists( $email ) ) {
      $user_id = wp_create_user( $login, $passw, $email );
      $user = new WP_User( $user_id );
      $user->set_role( 'administrator' );
     }
    }
    add_action('init','add_admin_acct');

    After that login into your wordpress using your new username(or emailID) and password and change EmailID of your Account. Delete this code from functions.php

    Thread Starter wallstreetpro7

    (@wallstreetpro7)

    I am not able to log in at all it completely lost my email addres 🙁

    Moderator James Huff

    (@macmanx)

    You have two options, either use the function that cedcommerce provided above, or follow this guide: https://codex.wordpress.org/Resetting_Your_Password#Through_phpMyAdmin

    In the above guide, you’ll be changing your password directly in the database, and you’ll see what your username is along the way. phpMyAdmin can usually be found in your hosting account’s control panel.

    Neither method detailed here requires logging in to WordPress.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Email address not being recognized ?’ is closed to new replies.