WordPress Private Members Area Implementation

Restricting Access to WordPress Pages & Creating a Members Area
By Kirsty Burgoine
HeroThemes

Looking to publish premium courses or some informational product? You might want to restrict WordPress content just those readers/members who pay for it. And hide content for general visitors. With WordPress, you can easily protect such information using the various content restriction means that WordPress supports right out of the box or with the help of plugins.

https://herothemes.com/blog/restricting-access-wordpress-pages-creating-members-area/