Rating: 1 star
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.
Rating: 5 stars
Exactly what I needed!
]]>Rating: 5 stars
This plugin does exactly what it needs to while remaining non-invasive. Utilizes the built in wordpress private page status. Brilliant. Thanks.
]]>Rating: 5 stars
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);
Rating: 5 stars
Does it’s trick, very helpful, thank you.
]]>Rating: 5 stars
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.
]]>Rating: 2 stars
When we installed the plugin and activated it, the plugin did exactly what it needed to do: Subscribers had to log in, in order to access private content. However, when I went to our site the next day, the wordpress bar that usually shows up at the top on the frontend while logged in was gone. I am an admin role, so that should not have happened. Thinking I had been logged out on accident, I tried to go to the login page. I was redirected to the homepage of the website instead. By using a longer string for the login url, I was able to bypass this. I deactivated the plugin.
ISSUES:
Other than these issues, the plugin does what I need it to do. But it’s not worth risking being locked out of my website. PLEASE FIX.
]]>Rating: 4 stars
Doing what it said. My problem is that subscribers would be stuck in an endless login loop, because they are still not allowed to view private page after login. Would be nice if I could define where to redirect, not just simply go to last (private) page.
]]>Rating: 5 stars
Thank you for this plugin. This is very clever.
This kind of ‘little things’ are very useful when you want to give the best experience to your users.
Congrats.
Rating: 5 stars
Effective, simple solution for private content.
]]>Rating: 5 stars
Works as intended. Thanks!
]]>Rating: 5 stars
I was looking for a plugin like this.It does what it says, thank you for this plugin. ??
]]>