Admin when you need it, editor the rest of the time: Temporary Admin in ToggleWP
Most people who look after a WordPress site don’t need to be an administrator most of the time. They write posts, update pages and answer comments, and an editor account does all of that. Then, every few weeks, they need to add a new team member or reset someone’s password. That needs an administrator.
So a lot of sites end up with too many administrators. Either the client’s account is made an admin “just in case”, or everyone shares the agency’s admin login. Both are risky. An administrator account is the most valuable thing an attacker can steal from a WordPress site. If an admin’s password is reused or guessed, or their login cookie is stolen, the attacker can install a plugin and take over the whole site.
ToggleWP 2.0.9 adds Temporary Admin, a new module that works like sudo on a server. People log in as an editor every day. When they need to manage users, they re-enter their password and become an administrator for a few minutes. When the time runs out they drop back to editor automatically, and they stay logged in.
How it works
1. An administrator chooses who can elevate
Turn on Temporary Admin on the ToggleWP Manage screen. Then, on the profile of each editor who should be able to elevate, tick Allow temporary admin.

Only a real administrator can tick this box. Someone who is only temporarily an admin can’t tick it for anyone else.
2. The editor sees “Become admin”
From then on, that editor has a Become admin item in the admin bar, and under Profile in the admin menu.

3. They re-enter their password
Being logged in isn’t enough. They have to type their password again, the same way you’d confirm sudo on a server. After five wrong passwords they have to wait 15 minutes before trying again.

4. They have admin rights, with a countdown
They go straight to the Users screen. A countdown in the admin bar shows how long they have left. Its menu has Extend, which starts the time again, and Drop admin access now for when they’ve finished.

The countdown turns amber in the last five minutes and red in the last minute.

When it reaches zero, they’re back to being an editor. They aren’t logged out and don’t lose their work.
What they can’t do, even while elevated
Temporary admin rights are deliberately limited, so they can’t be used to give anyone lasting admin access.
- Nobody can be made an administrator. The Administrator role, and any other role that can manage users or plugins, isn’t offered when adding a user or changing someone’s role. If something tries it anyway, for example another plugin, the change is undone and logged.
- Real administrators are off limits. Their accounts can’t be edited or deleted, and neither can the account of anyone else who’s allowed to elevate.
- Your own account is off limits too. People can’t change their own role or delete themselves while elevated.
- Roles and the default role can’t be changed. This stops someone widening the Editor role, or making every new sign-up an administrator.

Manage users only, or full admin
You choose how much a temporary admin gets.
- Manage users only (the default): list, add, edit, change the role of, and delete users. That’s all.
- Full admin: everything an administrator can do, except installing plugins or themes, editing plugin or theme files, and saving unfiltered HTML. Those are left out because each could leave code behind that outlasts the elevation.
Full admin can still activate plugins that are already installed and change settings. Only choose it for people you’d trust with that.

Protection against stolen logins
The extra rights only work in the browser login that elevated. Logging in on another device, or using an application password through the REST API, gets editor rights only.
By default, elevation is also tied to the IP address it started from. If a request arrives from a different address, the elevation ends straight away and the event is logged. So even if an attacker steals a login cookie while someone is elevated, they can’t use the admin rights from their own computer. If your team’s address changes a lot, for example on mobile data, you can choose Same network instead, or turn the check off.
Many sites sit behind Cloudflare or a load balancer, so every visitor seems to come from the proxy’s address. Lots of plugins deal with this by trusting headers like X-Forwarded-For, but anyone can send those headers and claim any address. Temporary Admin only believes them when the request really comes from Cloudflare, if you tick Site is behind Cloudflare, or from a proxy you list.
Works with Session Management
If you use ToggleWP’s Session Management module to limit how long admin sessions last, Temporary Admin uses the same length. If your admin sessions are 15 minutes, elevation is 15 minutes too. When an admin session would end, an elevated editor goes back to being an editor instead of being logged out. And a Force logout from the Users screen ends any elevation too.
Everything is logged
The Temporary Admin settings screen shows who can elevate and a log of recent activity:
- Each time someone becomes admin, extends, finishes, or runs out of time,
- Wrong passwords,
- Elevations ended by an IP change,
- Anything that was blocked,
- Every user change made while elevated.
You can also have the site’s admin email address sent a message each time someone becomes admin. Log entries are kept for 90 days.

Getting it
Temporary Admin is in ToggleWP 2.0.9 and is included in every plan. Update ToggleWP, turn the module on from the Manage screen, and tick Allow temporary admin on the editors who need it. If your sites are connected to ToggleWP Cloud, switching it off from a sync needs approval from the site’s admin email address, the same as our other security modules.
In short
- People who only sometimes need admin rights can now log in as editors and become an admin for a few minutes when they need it.
- They re-enter their password to elevate, see a countdown, and drop back to editor automatically.
- While elevated, nobody can be made an administrator, and real administrators can’t be touched.
- Admin rights only work in the login that elevated and, by default, from the same IP address, so a stolen cookie is far less useful.
- Every elevation and every user change is logged, and the site admin can be emailed.
