I have had trouble logging into WP-Admin with my admin account.

I have reset my password, and I can now log-in to WP-Admin, but cannot reach Network Admin (/wp-admin/network), instead receiving “You do not have sufficient permissions to access this page.”

What do I need to do to restore the permissions the account had before the password reset?

1
1

The easiest way to restore Super Admin privileges is to add a bit of code to your theme’s functions.php file to add yourself back:

include(ABSPATH . 'wp-admin/includes/ms.php');
$user = get_userdatabylogin('YOUR_USERNAME');
grant_super_admin($user->ID);

Once your Super Admin privileges have been restored you can remove this code from your theme.

Leave a Reply

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