Comments (16)

  1. Hey Joe, I have done it this way as well as simply creating a new username and pw, and deleting the admin. Found that for some beginners that’s a easier process to understand and some get overwhelmed when they go into their cPanel, or especially their phpMyAdmin.

    My question is are there other advantages of doing it one way or another?

    thanks for the easy to follow post, great reference for my clients!

    • Your way sounds like a good option in some situations. But if there are posts already associated with the user, then you probably aren’t going to want to delete them. I know there’s the option to attribute the posts to another user, but that seems riskier to me than changing the name in the database, to be honest. Who knows what can get lost when things are done automatically.

      I understand that many people don’t like to go into their database (for good reason). I was like that for many years (and still am when it comes to some things). But some things (like this) are fairly easy and straight-forward, and so I was hoping to help those who are ready to take that step. That said, I also understand that a little knowledge can be a dangerous thing.

      If your clients have access to their database, then I guess I’d be careful in giving them that “little knowledge.” :) After all, you’ll probably be the one trying to clean things up if something goes wrong.

  2. If I remember correctly, the catch with the approach that you suggest is that for WordPress networks the user name is also added to the user meta data as part of a serialized array.

    So for networks it’s necessary to also change the name in that array, and then, if the length of the new name doesn’t match that of the old name, to also tweak the data that defines the array’s structure.

    I believe that this is why the seemingly straightforward option isn’t available in the WP Admin.

Participate