Plugin info

Total downloads: 7,835
Active installs: 50
Total reviews: 0
Average rating: 0
Support threads opened: 0
Support threads resolved: 0 (0%)
Available in: 1 language(s)
Contributors: 1
Last updated: 8/28/2015 (3778 days ago)
Added to WordPress: 11/9/2011 (14 years old)
Minimum WordPress version: 2.0.2
Tested up to WordPress version: 4.3.34
Minimum PHP version: f

Maintenance & Compatibility

Maintenance score

Possibly abandoned • Last updated 3778 days ago

20/100

Is Force User Login abandoned?

Possibly abandoned (last update 3778 days ago).

Compatibility

Requires WordPress: 2.0.2
Tested up to: 4.3.34
Requires PHP: f

Languages

Similar & Alternatives

Explore plugins with similar tags, and compare key metrics like downloads, ratings, updates, support, and WP/PHP compatibility.

Force User Login
Rating 5.0/5 (2 reviews)Active installs 100
Force User Login Multisite
Rating 5.0/5 (1 reviews)Active installs 20
WS Force Login Page
Rating 4.5/5 (2 reviews)Active installs 600

Description

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.

Installation

  1. Upload force-login.php to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress

Frequently Asked Questions

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'];

to

$redirect_to = '/';

it would redirect the user to the home page.

Review feed

No reviews available

Screenshots

No screenshots available

Changelog

1.0.2

  • Tested with WordPress 4.3
  • Updated meta description
  • A screenshot added