This members-only tutorial is the counter-part of How to restrict content visibility to non logged in visitors in Oxygen article.
We shall add a custom shortcode that returns the enclosed content only if the current user is logged into the site to be used with a Shortcode Wrapper element in Oxygen.
For anonymous non-logged in visitors, we shall show a login form.
For anonymous visitors:
For logged-in users:
Install and activate Code Snippets plugin.
Go to Snippets > Add New.
Title: Shortcode to show content to logged in users only
This is a premium members-only content.
To view the rest of the content, please sign up for membership ($27/month).
Already a member? Log in below or here.
Enter your email address to subscribe to this blog and receive notifications of new tutorials by email.
Join 158 other subscribers
Please log in again.
The login page will open in a new tab. After logging in you can close it and return to this page.