6 Comments on “Use FTP to Create New Admin User in WordPress”

  1. Hi, interesting piece of code. However, it didn’t work for me. When I paste this code in the functions.php file, then my webpage turns blank after refreshing.
    Any suggestions here?


    1. Changing “WP_DEBUG” to true in your wp-config.php file should tell you what the error is when you refresh the page.

      Odds are if nothing is loading you have an error in your code. My guess is you didn’t close or open a PHP tag correctly, or have blank space after the final closing ?> tag in your functions.php.

  2. Was stuck for an hour on a WordPress migration that turned nasty. Couldn’t log in and email not recognized. You saved me many hours of painful troubleshooting. Thanks !

Leave a Reply

Your email address will not be published. Required fields are marked *