This is a very small plugin that forces users to login before viewing any content. This is done by checking if the user is logged in, and if not, redirecting them to the login page. Users attempting to view blog content via RSS are also authenticated via HTTP Auth.
Modification: use get_site_url() to redirect to the login page properly when WordPress is located in a subdirectory.
- Activate the plugin through the ‘Plugins’ menu in WordPress
- Can I change where the user is redirected after logging in?
Yes! A variable called $redirect_to (line 33) is currently set to redirect the user to the page they were trying to access. If you changed that line from
$redirect_to = $_SERVER['REQUEST_URI'];
$redirect_to = '/';
it would redirect the user to the home page.
이 플러그인에 대한 평가가 없습니다.
기여자 & 개발자
“Force User Login”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이 플러그인에 기여하였습니다.기여자
- Tested with WordPress 4.3
- Updated meta description
- A screenshot added