Recover ClassicPress password

If you forgot your password there are various ways to recover or reset your password. If the default password reset procedure fails, you can try one of the methods below.

Change password using WP-CLILink to this section

  • Login to the server
  • Change directory to your ClassicPress installation
  • Get the users list and find your user ID with this command:
    wp user list
  • Change password with this command:
    wp user update <ID> --user_pass=<new_password>
  • Now you can login at your site using your username, with the new password

Change password using MySQLLink to this section

  • Go to cp_users table.
    The name depends on the prefix, so the cp_ suffix can change
  • Edit your user row and change user_pass value to $P$BMxEIAMPG9h6umiaM0XrlPUtTDRkWu.
    Notice that the string ends with a dot
    The SQL code will look like this:
    UPDATE cp_users SET user_pass = '$P$BMxEIAMPG9h6umiaM0XrlPUtTDRkWu.' WHERE cp_users.ID = 1
  • Now you can login at your site using your username, with password Hello!
  • Please now change your password to a more complex one

Change password using FTPLink to this section

  • Download your theme’s functions.php file
    You’ll find it in the wp-content/themes/<your-active-theme>/ folder
  • Add this code after the <?php opening tag:
    wp_set_password( '<your-new-password>', get_user_by( 'login','<your-user-name>' )->ID);
  • Upload the updated file
  • Load your site’s homepage
  • Restore the original functions.php file (important, or you’ll get into an infinite loop when logging in)
  • Now you can login at your site using your username, with the new password

Change password using control panelLink to this section

  • If your host allows this, login to your control panel and open your theme’s functions.php file
    You’ll find it in the wp-content/themes/<your-active-theme>/ folder
  • Add this code after the <?php opening tag:
    wp_set_password( '<your-new-password>', get_user_by( 'login','<your-user-name>' )->ID);
  • Save the updated file
  • Load your site’s homepage
  • Revert the change in functions.php and save the file (important, or you’ll get into an infinite loop when logging in)
  • Now you can login at your site using your username, with the new password

Last updated on October 27th, 2026 at 02:25 pm