Plugin Directory

Force User Login

Very small plugin that forces users to login to view blog content.

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.

Requires: 2.0.2 or higher
Compatible up to: 2.1
Last Updated: 2009-1-27
Downloads: 11,642

Average Rating

4 stars
(10 ratings)

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1
100,3,3
0,1,0
100,1,1
100,2,2
100,1,1
100,1,1
100,1,1
0,1,0
100,2,2
0,1,0