• Over the summer, the admin accounts to our wordpress blog somehow lost all their admin privileges. Now, not a single contributor has admin privileges, and the site is impossible to manage without an administrator. Is there a way to reinstate admin privileges to at least one of us? Or as a last resort, can we start from scratch and remove all the accounts and start with one administrator again? How would I go about doing this? Thanks for any advice or help!!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter abyss

    (@abyss)

    Yes, but it’s not relevant. Our passwords are intact. We can all log in, it’s just that none of us have administrator privileges anymore. The administrators used to be able to create new accounts and publish, but now our admin people have been reduced to “author” level, not even “publisher”,much less “admin.”

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.ads-software.com Admin

    Huh. Never heard of that one before.

    You can use this little bit of code to set some user to an admin:

    $user = new WP_User('','otto');
    $user->set_role('administrator');

    Change “otto” to the username you want to adjust (his login name).

    Then, add that code into your theme’s functions.php file and then load any page on the site up in a browser to make it run. Make sure to remove the code after you’re done. Then login as that user and reset everything correctly.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Help! Lost all admin privileges!’ is closed to new replies.