[![SensioLabsInsight](https://insight.sensiolabs.com/projects/e85826fc-c1cb-47f1-9448-2a04b7b00eb1/big.png?x_cache=false)](https://insight.sensiolabs.com/projects/e85826fc-c1cb-47f1-9448-2a04b7b00eb1)

[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/codehaiku/subway-2.0/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/codehaiku/subway-2.0/?branch=master) [![Build Status](https://scrutinizer-ci.com/g/codehaiku/subway-2.0/badges/build.png?b=master)](https://scrutinizer-ci.com/g/codehaiku/subway-2.0/build-status/master)
<h3><strong>Subway - Private WordPress Site Option</strong></h3>

Subway is a small plugin for WordPress that allows you to hide the content of your website to non-logged in visitors and only displays them to logged in users.

This plugin redirects the users to the provided login page with a login form that allows them to type their username/email and password combination. 

It validates the users’ credentials and displays a set of configurable messages if there are errors such as invalid username, empty username, wrong password, and etcetera.

The plugin has settings inside the Administration Panel (‘Settings’ > 'Subway') that allows you to configure where you want the user to be taken after he/she has successfully logged in, this can be a page, a custom URL, or just the default behavior.

<strong>Current Version: 2.0.2</strong>

<h3><strong>Caveats</strong></h3>

Subway is only built for WordPress website owners to redirect non-logged in users to a custom login form. This plugin is not a replacement for Membership websites where a complex set of configurations are allowed. There are no payments model, subscriptions, and role types.

Subway is good for Private Intranet Websites where membership is required.

<h3><strong>Installation</strong></h3>

<strong>Manual:</strong>

Download and unzip the "subway.zip" plugin.

Upload the entire "subway" directory to your '/wp-content/plugins/' directory.

Activate the "Subway" plugin through the Plugins menu in WordPress.

Go to ‘Settings’ > ‘Reading’ to set-up the plugin.


<strong>Automatic:</strong>

Click here to learn how to automatically add the plugin using the built-in plugin installer.
