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?
- How to prefill WordPress registration with social details
- What’s the difference between wp_insert_user() and wp_create_user()
- Placeholder text for registration form
- how to disable user confirmation from administration?
- Remove Site Name from register form – Multisite
- Exclude pages from WordPress search result page
- Prevent user creating new users with specific roles
- Post-Registration, post-meta hook?
- User defined password at registration – registration email sends auto generated pass
- Identical members roles on all sites in a multisite
- changing the signup button url in WPMU/Buddypress
- How do I redirect a user when he is logged in after clicking on a menu
- Disable domain redirect
- Passing the page ID to a login php script
- Batch users creation
- Buddypress register.php user redirect [closed]
- Restricted registrations or removing the ability to edit your password/email
- How can I test why the comment hook is not working?
- WordPress Registration Email by Role
- How to stop WordPress emailing a password
- Can I change default registration link (without htaccess)?
- New user signup via REST API
- Multisite – user email activation links broken
- Create custom registration form for WordPress Multisite
- WP MU Register User across all blogs
- Backend user creation form with additional language field
- register_activation_hook not updating
- Change url links on members loops in buddypress
- Script or plugin to send activation email automatically again after 2 hours
- Login/Register redirect user with message
- Registering a stylesheet inside my WordPress widget
- Menu page with list of users
- How to bring registration field to index page? [closed]
- WordPress User Post Products
- How to make registration form ajax?
- How Can I Edit the Registration Code?
- Facebook Registration Tool: how to use in WordPress? [closed]
- How to add fields in custom registration form, validate it and aave to db? [closed]
- Customising “user ids” and add to ‘user’ panel in the admin area
- How can I modify labels in default wordpress registration form? [duplicate]
- Display number of sign-ups [closed]
- Register through url
- Is there any way to not require email address or disable notification upon setting up a member?
- User Without Email?
- WordPress – Users with contact form on profile
- Assign user role by text field in WordPress (Woocommerce) [closed]
- redirect from /members/front to /members/custom
- Preventing RSS feeds access to the authenticated uses only
- Attaching an upload to a user
- User Registration Moderate
- Select dropdown with 2 choices from foreach
- Restrict certain roles registrations by domain
- Create new post on user registration
- Login user after registration programmatically
- Populate Website URL at registration time
- Private WordPress blog, requires user registration approval, and allowing users to login with OpenID
- Changing starting number of User ID
- Plugin De/Activation Not Firing On MultiSite install
- Registration Page
- Buddypress Plugin for register user from other site’s [closed]
- Permissions question [closed]
- Masking external links with internal link for member-only
- Need help with restricted page for users
- Limit username to specific characters (A-Z and 0-9)
- how can i inform other users about new user registration? [closed]
- Username character requirements
- WordPress – custom user flow registration approval
- rest_cannot_create_user – Sorry, you are not allowed to create new users. CURL WORDPRESS REST API