Create secure temporary WordPress access with Temporary Login
Introduction
Managing temporary access to WordPress is a recurring request: to give quick access to a customer, developer, support or service provider, without creating a permanent account and running the risk of forgetting to delete it later.
We have developed the Temporary Login in WPMasterToolKit.
The objective is simple: create temporary users with a limited validity periodAll this directly from the WordPress administration interface.
Which plugin can the Temporary Login module replace?
The module Temporary Login can replace several plugins dedicated to temporary access, such as :
- Temporary Login Without Password
- WP Temporary Login
- Login Me Now
- Magic Login - Passwordless Authentication for WordPress - Login Without Password
With WPMasterToolKit, you avoid installing an additional plugin just for this functionality, while retaining fine-grained control over roles, security and access expiry.
How to use the Temporary Login module
Using the Temporary Login has been designed to be quick and easy, even for non-technical users.
1. Go to module
From WordPress administration :
- Go to WPMasterToolKit > Temporary Login
- You arrive on the list of existing temporary users

You can also access the creation of a temporary user directly from the Utilisateurs using the "Add Temporary User.
2. Create a new temporary user
Click on "Add New Temporary Userthen configure the following options:
- User role choose the WordPress role to assign (default is administrator)
- Period of validity selects how long the access will be active
- Connection link (PRO): activate this option to enable log-in without login or password
- Protection of other directors (PRO): limits actions possible if administrator role is selected
- Send email automatically sends accesses to the temporary user

Once the form has been validated, the user is created immediately, with a defined expiry date.
3. Transmit access
After the creation :
- If the connection link is activated, you can copy the magic link in one click
- Alternatively, you can copy the loginthe Password and the connection URL
- Information is displayed only oncethink about backing them up
An email can also be sent automatically or resent later.
4. Manage existing temporary users
From the list of temporary users, you can :
- View creation and expiry dates
- Copy the magic connection link again
- Resend access email
- Change role or extend validity period (PRO)
- Delete a temporary user individually or en masse

Expired accounts are automatically blocked and deleted.
5. End of validity and automatic cleaning
Once the expiry date has been reached :
- User can no longer connect
- The account is automatically deleted by the system
- No manual cleaning required
This guarantees a clean and secure WordPress site at all times.
Create temporary WordPress users easily
The heart of the module lies in the creation of user accounts marked as temporary via a dedicated user meta.
Each temporary user has :
- A configurable WordPress role (administrator, editor, etc.)
- A precise expiry date
- Clearly identified as a temporary account
- Automatic deletion once expired
This keeps the user base clean and secure, without manual intervention.
Password-free access via login link
In the PRO version, the module can generate a secure connection link for temporary users.
In concrete terms :
- A unique token is generated for the user
- A special link is created with this token
- The user can connect without login or password
- The link becomes invalid when the account expires
This system is ideal for :
- Support access
- Rapid validation
- Non-technical users
The link can be copied in one click or sent automatically by email.
Advanced validity period management
When creating a temporary user, you can define the exact duration of access:
- 1 hour
- 6 hours
- 12 hours
- 1 day
- 3 days
- 7 days (only free option)
- 30 days
- A personalized date
The PRO version is also available, extend the validity of an existing user without creating a new account.
Automatic emailing of accesses
The module can automatically send an email to the temporary user containing :
- Either the magic connection link
- Either the standard login (login + password)
- Access expiry date
A button also allows you to resend the email at any time from the list of temporary users.
Protection for other administrators (enhanced security)
A critical point when giving a temporary administrator role is security.
That's why we've included a specific option:
Protection of other administrator accounts (PRO)
When enabled, the temporary admin user cannot modify, delete or edit the accounts of other administrators. They can only act on non-administrator users.

This greatly reduces the risk of sensitive access.
Automatic cleaning of expired accounts
The module doesn't just block access once the date has passed.
It goes one step further by setting up :
- A check on each connection attempt
- Automatic daily deletion of expired accounts via a WordPress cron
Result: no temporary account forgotten in your user database.
Native WordPress integration
For a seamless experience, the module adds :
- A dedicated submenu in WPMasterToolKit
- Direct access from the
Utilisateursfrom WordPress - Add a temporary user" button directly in the native interface

Everything is designed to be consistent with the WordPress UX.
Hooks and filters available for developers
The module exposes a filter to customize its behavior:
Filter wpmastertoolkit_temporary_login_user_prefix
This filter lets you modify the prefix used to automatically generate temporary user IDs.
Parameter :
- Default prefix for temporary accounts
Use cases :
- Adapting naming to internal conventions
- Easily identify temporary accounts in the database
Our technical choices
We have chosen :
- Use the native WordPress mechanisms (users, roles, meta, cron)
- Load module class only when activated
- Secure every action with nonces and capacities (
manage_options) - Avoid unnecessary database overloads
- Centralize logic in a single stand-alone module
This design guarantees both performance, safety and maintainability.
Conclusion
The module Temporary Login from WPMasterToolKit is a complete and secure solution for managing temporary access to WordPress.
It enables :
- Create temporary users in just a few clicks
- Limit access time
- Use magical connecting links
- Protect sensitive accounts
- Automate cleaning of expired accesses
It's an essential feature for any agency, freelancer or team that needs to collaborate on WordPress sites from time to time, without compromising on security.

