Compatibility with Lock User Account plugin.
-
I’m using a plugin – https://ww.wp.xz.cn/plugins/lock-user-account/ – which allows the admin to prevent other users from logging into the site at various times, as needed. It’s very useful in certain circumstances, such as when copying different environments. It doesn’t work in tandem with WPS Hide Login.
I see in the description of WPS Hide Login that you explain:
It’s … compatible with any plugin that hooks in the login form. It doesn’t work with plugins or themes that hardcoded wp-login.php.
The Lock User Account plugin checks, at time of login attempt, to see if the user that is trying to log in is in a list of “locked” users, and displays a custom error message on the login page if they are one of the locked users. The problem is that when they attempt to login, they are redirected to wp-login.php instead of at the custom URL set in WPS Hide Login, which of course throws a 404 error.
I’ve looked through the code of the Lock User Account plugin to see where it returns to the wp-login.php URL, but I’m not well versed enough in PHP to find where that is happening.
I’m hoping that you might be able to offer some advise or suggestions. It would be great if I could use both plugins together! Perhaps I can convince the author of the Lock User Account plugin to improve its code, if I can offer a suggestion of how to do that?
Or perhaps there is some kind of hook that I could add to my functions.php file, to send them to the custom login URL instead of wp-login.php?wpe-login=true when a locked user tries to log in?
The topic ‘Compatibility with Lock User Account plugin.’ is closed to new replies.