You can use current_user_has_role for this
And if the standard roles are not enough for you, then I would suggest to download the Members plugin by Justin Tadlock which enables you to add roles.
Related Posts:
- How to restrict access to uploaded files?
- throttle/limit a logged in user’s http requests to specific page on a per day basis
- How to programatically change username (user_login)?
- Allowing users to edit only their page and nobody else’s
- Disallowing Users of a Custom Role from Deleting or Adding Administrators?
- Hide Admin Menu for Specific User ID who has administrator Role
- How to hide media uploads by other users in the Media menu?
- Allowing an email as the username?
- Check if specific username is logged in
- Post list based on the user that is logged in
- Basic auth WordPress REST API dilemma
- Copy a user from one WordPress site to another
- User File Upload Repository?
- Front end user meta options for users
- add ‘file upload’ field to user details
- How to customize wp_signon()
- Can I create users that have access to *some* other users posts instead of all other users posts?
- Set default page for user account in admin
- Share user table from WP with Drupal
- Log all users out of all locations after 24 hours
- Hide everything on site for visitors except specific page IDs
- Rule to redirect non logged in User to Custom Registration/login Page in .htaccess file
- Managing Users and Creating Groups [closed]
- show text If special user is logged
- Upgrade Nightmare – No Posts, Permissions Issues and Can’t Create a new post
- How to disable a specific page for a specific user
- Allow user access to Dashboard only!
- wordpress user roles are not working
- Displaying different in-page content to cliente/admin
- Problem with automatic role change through cron job
- Reset Password policy
- How can I allow an User to publish only 5 posts per month?
- Where are $current_user->allcaps set?
- How do you manage your pages or functions that require logged-in users?
- Allow admins to login as other users
- Can I Create a Second Admin Level User Role?
- Delete a user from frontend
- Unique password to access a section site
- One Click Access To Users Account In WordPress?
- Using my own user table
- Allow users to upload flash videos?
- WordPress user role with create user capability?
- Update user role for expired membership
- How do I set a maximum upload size for a specific user role (Editor)
- Front-end uploader logging user out when they attempt to upload image
- Iterating users while user iteration is suppressed
- How to use url formatter with integer
- Custom User Role: Can Edit Own Page, Cannot Create New
- WordPress install checking permissions of user id 0
- Allowing users to edit only their page and nobody else’s
- How to bulk change user role to “No role for this site”
- Restrict Access to the User Profile
- post acces for guests / unregistered users only
- Username has been exposed
- view and update form only for registered users
- Control Category of each user can post
- Limit user access to installing/configuring a plugin?
- determine active user browser at the same time
- MySQL query to list users who never signed in
- Wordpres password as plain text in email
- WordPress password as plain text in email
- (How) does WordPress protect direct access of user data?
- How to remove/limit Editor accounts privileges, to prevent them from deleting media and pages created by Admin
- user_login vs. user_nicename
- Why are user address fields required [closed]
- How to remove “Super Admin” from All Users for those that are not a “Super Admin”?
- How to get user ID during registration and add it to a custom table
- How do I properly format the user_role array?
- Tagging users in WordPress
- Rewrite rule to load images from production does nothing
- WordPress User getting added with id of 0
- Show MD5 Password in user section
- RSS feed for a given user’s post?
- add_cap not working with Shop Manager role
- Bulk delete users from a csv list
- Get tags for current user
- Users managed to register on website with no register button?
- Is there a way to make custom fields only editable by administrators?
- How to use WordPress for class notes?
- WP_User_Query by meta_value with Number returns nothing
- Create custom post with custom user rules
- Preventing auto-filling of e-mail addresses on profile.php
- How to get last user with wpdb?
- How to Create a User Profile Page?
- How can I change “Users” related labels in the wordpress dashboard
- User can manage one page accessible by everyone?
- SELECT from wp_users, get Displayname too
- Redirect current user to their most recent custom post
- how redirect users to custom login page when “login to reply” is clicked? [duplicate]
- how to delete in phpmyadmin sql – all users with certain condition and all dependencies
- How to Moderate Edits to User Profiles?
- wp_insert_user always tries the same user name
- Limit a user only to wp-cli only use
- Registration page as homepage
- New User ID not working in custom function with user_register hook
- limit the access to uploaded files
- Creating Custom user type just like custom post
- Have users created automatically when a network site is created
- TYPO3 to WordPress Migration (Users)
- Allow users to edit post without logging in