A plugin for WordPress that redirects users to the login page whenever they try to visit any page/post/etc on the blog.
Very lightweight and powerful plugin.
I was looking for a code to implement in functions.php
This plugin does the whole work.
You must log in to submit a review. You can also log in or register using the form near the top of this page.