Skip to content
  • Մուտք
  • Գրանցվել
WordPress.org

հայերեն

  • Տեսաձևեր
  • Խրվակներ
  • News
  • Support
  • About
  • Տեղակայում
  • Թարգմանիչներ
  • Հետադարձ կապ
  • Get WordPress
Get WordPress

Plugins

  • My Favorites
  • Beta Testing
  • Developers

This plugin hasn’t been tested with the latest 3 major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Download

Private Content Login Redirect

By Kumar Abhisek
  • Details
  • Reviews
  • Installation
  • Development
Support

Description

Do you post private content? Are you sending those links to your users with private content access?

WordPress by default redirects all non-logged users to a 404(content not found) page when they follow a private post or private page link.Instead of showing a 404 page, this plugin simply redirects those users to the login page.After successful login, it automatically redirects users with private content access to the private content link they followed.

Note: If you post private content and want to get more subscribers to read your private content, I developed a Free plugin for that too…Check out Mini Membership.

If you like this plugin, please consider leaving a review. Thank you!

Follow the developer on Twitter
Visit Developer Website

Download My Other Plugins

  • Mini Membership
  • WP Admin Color Schemes
  • Rainbow Status
  • Restrict Dashboard Access
  • Romance Admin Color Scheme
  • Frame Breaker
  • Inspire Dolly

Installation

  1. Download The Private Content Login Redirect package file, extract the private-content-login-redirect directory from ZIP file, upload it to WordPress Plugins directory ‘/wp-content/plugins/’ or install plugin from Plugin panel in WordPress Dashboard

  2. Activate Private Content Login Redirect via Plugin page

  3. All set

If you are new to WordPress : Installing Plugins

Reviews

Redirect to login but no back redirection

pleclerc Սեպտեմբերի 20, 2017
Redirect to login but no back redirection even we guess the wp-login/ url look like to indicate a future redirection. My page have two level./partenaires/annuaire-partenaires/ I look at the developper code, it's really too simple, can cause many problems.

Exactly what I needed!

Gustavo S. Serra Սեպտեմբերի 9, 2017
Exactly what I needed!

Took me too long to find this simple plugin

frogdogtech Հունվարի 31, 2017
This plugin does exactly what it needs to while remaining non-invasive. Utilizes the built in wordpress private page status. Brilliant. Thanks.

Work perfectly!

gtamborero Հոկտեմբերի 4, 2016
hidden pages goes to login 😉 You can also get the function inside the plugin and use it your functions.php theme: function private_content_redirect_to_login() { global $wp_query,$wpdb; if (is_404()) { $private = $wpdb->get_row($wp_query->request); $location = wp_login_url($_SERVER["REQUEST_URI"]); if( 'private' == $private->post_status ) { wp_safe_redirect($location); exit; } } } add_action('template_redirect', 'private_content_redirect_to_login', 9);

Works as described

smart.u Սեպտեմբերի 3, 2016
Does it's trick, very helpful, thank you.

Does what it says.

eisgeist Սեպտեմբերի 3, 2016
I've been searching for a little while for a plug-in doing a simple thing -that IMHO should be part of base WordPress capabilities-: redirect a visitor to login page when he/she tries to access a restricted page. To my needs, it simple and effective.
Read all 12 reviews

Contributors & Developers

“Private Content Login Redirect” is open source software. The following people have contributed to this plugin.

Contributors
  • Abhisek

Translate “Private Content Login Redirect” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

1.0.1

  • Solved Issue: When the plugin Fails to redirect if redirect_canonical() finds a match.(Thanks Dave James Miller for pointing this out)
  • Works with WordPress 4.1.1

Meta

  • Version: 1.0.1
  • Last updated: 6 տարի ago
  • Active installations: 1,000+
  • WordPress Version: 3.0 or higher
  • Tested up to: 4.6.25
  • Language:
    English (US)
  • Tags:
    loginprivate contentredirection
  • Advanced View

Ratings

See all
  • 5 stars 9
  • 4 stars 1
  • 3 stars 0
  • 2 stars 1
  • 1 star 1
Log in to submit a review.

Contributors

  • Abhisek

Support

Issues resolved in last two months:

0 out of 1

View support forum

  • About
  • News
  • Hosting
  • Donate
  • Swag
  • Documentation
  • Developers
  • Get Involved
  • Learn
  • Showcase
  • Plugins
  • Themes
  • Patterns
  • WordCamp
  • WordPress.TV
  • BuddyPress
  • bbPress
  • WordPress.com
  • Matt
  • Privacy
  • Public Code
WordPress.org
WordPress.org

հայերեն

  • Visit our Facebook page
  • Visit our Twitter account
  • Visit our Instagram account
  • Visit our LinkedIn account
Կոդավորումը՝ բանաստեղծական է։