[resolved] how to change admin username (9 posts)

  1. idowu
    Posted 3 years ago #

    please i am running WP multisite, and i want to change the 'admin' username charged with super-admin role. i want a unique name that will be the super-admin, instead of using admin.

  2. Axel13
    Posted 3 years ago #

    That's a good thing to do idd.
    I'd do this through phpMyAdmin. It's done the same way as changing password.

  3. Axel, don't do that. Superadmin values are stored serialized in the DB. If you change if there, you'll break your site and NO ONE will be superadmin.

    Do this:

    1) Create a new user

    2) Make that ID superadmin.

    3) Remove 'admin' from superadmins.

    If you used 'admin' to make posts, you can delete the account, but you have to attribute ALL posts to the new user... it's a little bit of a hassle on Multisite, esp if the user posted on multiple sites :/

  4. idowu
    Posted 3 years ago #

    thanks axel13 for the time alloted to suggest a solution, but i think i will follow ipstenu path. thanks everybody

  5. idowu
    Posted 3 years ago #

    please i have an issue. i have stripped 'admin' of 'super-admin' power, but when i tried to delete 'admin', it persists. and moreover, all posts posted by 'admin' now displays the raw php instead of processed content. can someone please help me out

  6. Raw PHP?

    Change the author to your NEW super admin account.

  7. idowu
    Posted 3 years ago #

    thanks ipstenu, i have done that.
    one more question: in WP single site install, there are functions like getbloginfo(), getoption(), and so on, available to get info about a single site and to manipulate. in a multisite scenario, what are template tags available such that for manipulating contents to be served based on the site name/id.

    for example, if i want a content for my mobile site only, what template tag/parameters are my to use.
    thank you

  8. dgilmour
    Posted 3 years ago #

    Best to raise a separate post for that one. In the right place. ;-)

  9. idowu
    Posted 3 years ago #

    ok, dgilmour, i will do that right away. thanks

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.