Connect with us

Wordpress Tips

Time-Restricted Admin Access for WordPress

Most of us don’t share our admin credentials with anyone else. In certain cases, you may want to so temporarily. You can always try a fancy plugin or write your own code. For this, you will have to define allowed start and end times. You should do a check against your users to ignore your own account and only target temporary admins.  In this code, the default admin is ignored but the rest of admins are given access between certain times.

20+ WordPress Plugins for membership sites

You do have the option to block wp-login.php access outside normal hours. You can also log unauthorized access attempts and redirect people to a custom page outside allowed times. It is also possible to change the maintenance message.

[more tips]

Continue Reading
You may want to check out:
*some of our articles and lists include affiliate links to fund our operations (e.g. Amazon, Elegant Themes, Envato). Please read our disclaimer on how we fund Exxponent.
You may also like...
Click to comment

Leave a Reply

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

More in Wordpress Tips

To Top