Redirects non-logged users to the login page when they follow a link to a post, page, or cpt which is protected by post status.
As of April 2026, LH Private Content Login is a WordPress login plugin with 300 active installations and a 5/5 rating from 5 reviews. It has been downloaded 5.9K+ times in total. Requires WordPress 5.0+ and PHP false+. Available on WordPress.org since 2017. Last updated 2 years ago — may have compatibility concerns. Top alternative: WPS Hide Login.
Do you post private content? Are you sending those links to your users with private content access?
WordPress natively send non-logged in users to a 404 (content not found) page when they try to access a post, page, or cpt without rights. This plugin redirects those users to the login page. After successful login the user is then redirected back to the post, page, or cpt they were trying to access.
Like this plugin? Please consider leaving a 5-star review.
Love this plugin or want to help the LocalHero Project? Please consider making a donation.
| WordPress | 5.0+ requiredTested up to 6.4.8 |
| PHP | false+ required |
1.00 January 22, 2017
* Initial release
1.01 March 03, 2017
* Added preview login functionality
1.02 July 25, 2017
* Added class check
1.03 March 04, 2018
* Singleton pattern implemented
1.00 September 04, 2020
* Moved hooks to plugins loaded added login message
1.05 January 11, 2024
* Better translation support
Plugin data sourced from WordPress.org. Analysis and metrics by PluginSift.