Redirects users to the login page if the visitor is not logged in.
As of April 2026, Redirect to login if not logged in is a WordPress login plugin with 200 active installations and a 4.8/5 rating from 10 reviews. It has been downloaded 19K+ times in total. Requires WordPress 3.0.1+ and PHP false+. Available on WordPress.org since 2013. Last updated 7 years ago — may have compatibility concerns. Top alternative: WPS Hide Login.
Redirects users to the login page if the user is not logged in. After login the user gets redirected to the original entry page. For advanced users a filter is provided to override the redirect.
The principle behind this plugin is to redirect all users – from every post, page, archive, etc. – to the login page (usually wp-login.php). Except for the override filter it does nothing else.
If you do have a need for this plugin and you want to exclude specific views under specific conditions, a filter is provided to override the redirect.
To override the redir…
| WordPress | 3.0.1+ requiredTested up to 5.0.25 |
| PHP | false+ required |
Plugin data sourced from WordPress.org. Analysis and metrics by PluginSift.