I would say plugins are very easy way to handle membership until unless you want it for a small scale like for few pages/posts etc.
In that case you can register the level of users as per your requirements, assign capabilities and then on each page/post you can check if ( current_user_can() )
This can be a solution to manage to a small scale of things.
A small snippet for this will be
if ( current_user_can( $capability, $args ) ) {
// The code for the page goes here
} else {
// redirect to the home page or to some page telling the user he is not capable to see the page
}
Reference to Current_user_can LINK
Related Posts:
- Team club with CPTs and user registration + user dashboard
- Dynamic Home Page based on Log in status
- Paid member plugin with some specific features [closed]
- Shared Members between two different wordpress installations with different databases
- Allow access on a page to just only a specific member
- Private member page
- WordPress membership site for a sports club
- User registration
- I’m looking to add membership to my site, any plugins that would be compatible [closed]
- IF user is logged in only show certain page
- Showing content to specific BuddyPress Member Types
- Downloadable content only for subscribers?
- Using WordPress to build membership Page
- WordPress Plugins vs Traditional PHP membership website [closed]
- Make new users automatically approved
- How can I create a custom dashboard for a membership website?
- How to create a front facing user sign up, log in and profile pages like FoodGawker.Com [closed]
- How to add user registration and signup in WordPress and create members only page?
- Membership & Event Registration/Management plus-ins for non-profit [closed]
- My account staying logged when the browser closed
- Which membership plugin for a simple sign in? Personal areas for customers
- Public WP website with one area just for members
- Send a password to a user who has just registered for a member area
- User / membership Plugin [closed]
- Set user role on registration so can upload file to own media library area
- New User Sessions in WordPress?
- Premium Members Section of website
- How to get membership level id f a particular user [closed]
- Step by Step Instructions for Making Media/Uploads Private to Only Logged-In Users
- Membership Plugin [closed]
- Not for profit membership site on WordPress
- What is the best way to achieve unique Member functionality?
- Check if something is (not) in a list in Python
- What does this PHP function code mean? [closed]
- How to change the default registration email ? (plugin and/or non-plugin)
- Check if wp-login is current page
- How to display user registration form on front-end of the website?
- Add multiple custom fields to the general settings page
- How to allow an user role to create a new user under a role which lower than his level only?
- Is it possible to remove username field from the registration page? If so, how?
- Separate registration and login for different roles
- SSO / authentication integration with external ‘directory service’
- Adding fields to the “Add New User” screen in the dashboard
- users table – user_name vs. nicename
- Disable user registration password email
- What is an easy way to display a front-end user registration form?
- How can I un-reserve a pending username registration?
- How to prefill WordPress registration with social details
- How many users can WordPress handle?
- How do I programmatically set default role for new users?
- Display user registration date
- Customizing the URLs of WordPress Login and Sign-up Pages?
- Whats the best way to share user data across multiple WordPress websites?
- How do I customise the new user welcome email
- What’s the difference between wp_insert_user() and wp_create_user()
- Send user activation email when programmatically creating user
- Google Apps login in wordpress
- How to change “You must be logged in to post a comment.”
- User Without Email?
- How do I create a password reset link?
- Can I hook into user registration *before* a user is created?
- Filter username field on registration for profanity and unwanted words
- Difference between Option_Group and Option_Name in Register_Settings
- How can I be certain that a user has verified their email after registration?
- WordPress auto login after registration not working
- wordpress multisite, how to keep user on subdomain throughout registration process?
- Unregister Nav Menu from Child-Theme
- Placeholder text for registration form
- What the user_status column?
- Use the user_activation_key for other purposes
- WordPress as a CMS Membership website
- How to limit user registration to a specific set of domains?
- Woocommerce registration page [closed]
- Problem with Hebrew characters in username
- Remove email verification when new user register
- How to redirect a sucessful registration to a page template?
- How to set up User email verification after Signup?
- Stop spam users from registering without disabling user registration?
- Create posts on user registration
- How do I create a user using the new JSON api in 4.7?
- How to let user set password on registration
- Email verification for new users
- How to check if the user registration is allowed/active?
- Custom admin email for new user registration
- How to display custom user meta from registration in backend?
- How to add first name & last name to default registration form?
- Allow Duplicate Email Address for Different Users
- What should I do to make generated avatars different for anonymous comments?
- Allowing periods in usernames
- How to have WordPress send a user confirmation/validation email on signup
- BuddyPress: Allow only one email domain to register
- WordPress registration message
- How to remove administrator role in settings -> general -> New User Default Role?
- Email confirmation on registration
- How build a custom login/register form with error handling?
- how to disable user confirmation from administration?
- Membership / subscription plugins – alternatives [closed]
- Remove Site Name from register form – Multisite
- turn off new user registration emails
- Exclude pages from WordPress search result page