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
- How to add default folders to Every registered User when registered in WordPress site?
- How to expire guest users after 1.5 hours logged in?
- file upload user profile
- hide woo commerce dashboard status and reports from woo commerce from specific users but display to other users
- No one can edit post/pages by Administrator
- You do not have permission to access this document on form submit
- WordPress C# User Login
- What techniques can a user employ to achieve a password rated “strong” in the WordPress password checker
- User agent stylesheet distorting site [closed]
- Problem with update_user_meta() meta_value
- Create a wordpress admin user and only let them edit and post blog posts?
- One folder to be accessible by one user
- Shopping plugin with user groups [closed]
- Is it possible to tell if a user is logged into WordPress from looking at the cookies which are set?
- New User Registration email
- Create users from frontend without password
- How to get user contact info
- How to give different user access to different people?
- how can i inform other users about new user registration? [closed]
- Why does a super admin on multi site get a rest_user_invalid_id error code when requesting user details through REST?
- How to display Most Recently Read 10 Posts by a logged in user in wordpress
- How do I count the number of pages a user has seen on my site, and force them to log in after a certain amount
- How to add custom detail page for a Subscriber at Admin Panel
- Increase by one the user counter on specific role
- current_user_can() returning true for capability when the user and role do not have the capability
- Show only users with the same role in Dashboard user list
- Add custom input field in new user page
- WordPress – Security Question at Login from User’s Meta Data
- How to have a WordPress user profile just having one button and one input textbox?
- Redirect user based on role when they try access a particular page
- Remove @gmail.com from WordPress username
- get Discussion setting in wordpress
- How can I list users by date in an array in meta_value?
- How to create a specific role to manage users
- How to track all users logged into a site?
- Email Subscribe for Downloads in WordPress
- Cant edit profile from frontend