• sumrunuri

    (@sumrunuri)


    I cannot access my WordPress admin panel. I would like to reset my password by following the instructions below which I found on codex.ww.wp.xz.cn.

    1. Login to your site via FTP and download your active theme’s functions.php file.
    2. Edit the file and add this code to it, right at the beginning, after the first <?php:

    wp_set_password( ‘password’, 1 );

    Put in your own new password for the main admin user. The “1” is the user ID number in the wp_users table.
    3. Upload the modified file back to your site.
    4. After you then are able to login, make sure to go back and remove that code. It will reset your password on every page load until you do.

    My question is; Do I need to access the wp_users table and find out what the user ID number is and substitute the ‘1’ with that ID number, or do I simply leave the ‘1’ in the code above?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘wp_set_password( ‘password’, 1 );’ is closed to new replies.