authenticate user without redirecting
As per the Plugin FAQ use, wp_loginout($_SERVER[‘REQUEST_URI’]); Sorry that’s entirely incorrect, that function prints out the login/out url which you do not need/want for the purpose of using within a filter, instead use, wp_redirect( $_SERVER[‘REQUEST_URI’] ); …to return the user to the page they were on. If that does not allow you to preserve the … Read more