If not logged in, show login page content
authorLaury GvR <laury@gaslightmedia.com>
Mon, 5 Mar 2018 22:56:23 +0000 (17:56 -0500)
committerLaury GvR <laury@gaslightmedia.com>
Mon, 5 Mar 2018 22:56:23 +0000 (17:56 -0500)
commit47d8bb81831ce0b4c95d51f65eb545447b58131b
tree9583e9d033a90f440417b8e8851a0ba714c991e5
parent66ba597d4f1a3a4d71c38f83a6bf5f8975f05cda
If not logged in, show login page content

It was so that when one is on the members only page, the content
of that page would show in addition to the login form. This was
requested to be changed so that the members only login page text is
separate from the members only page text.

Code has also been added to try handling redirection; currently
when someone logs in on the front-end, the Contacts plugin forces
them to be redirected to the members only page, even if a different
url is supplied to the form. If that can be disabled, this code
would make it so one is only navigated to the Members Only page if
attempting to log in from the Members Only Login page, and
otherwise stay on their current page.
functions.php
index.php
template-parts/glm-members-only-login-form.php