When you register a user keep 2 rule as select or radio button, And keep save the rule in the database.
also, keep rule option in login, When the login checks the rule and give what access you want to give.
For access keep a condition in top of each page like ‘if user rule == ***’ else ‘You are not allowed to visit the page’
Related Posts:
- Is it possible to get a user with just the password field?
- Redirect after login based on user role (custom login page)
- Does wordpress support natively the concept of logging-in users? (not admins, but users of the website)
- How to change default username field after login
- WordPress – Security Question at Login from User’s Meta Data
- How to authenticate/verify login credentials & check for user meta without logging in?
- Editor can create any new user except administrator
- Find out if logged in user is not subscriber
- User-edit role setting distinct from wp_capabilities? [closed]
- Disallowing Users of a Custom Role from Deleting or Adding Administrators?
- What the user_status column?
- Hide Admin Menu for Specific User ID who has administrator Role
- Allow up to 5 Concurrent Login Sessions
- Show admin bar only for some USERS roles
- Grouping users under parent user
- How to update user role without logout
- How to check user role without using current_user_can()
- Do not allow users to create new posts and pages
- How to assign an additional/extra/second user-role to multiple users (of a specific user-role)
- How to stop a user from updating the post date
- BuddyPress | Check if user is in current group [closed]
- Pre-populate Username Field
- WordPress edit_user_profile_update update secondary role
- How to customize wp_signon()
- How to get the Role Name of the current user? (WordPress)
- set_role has no effect
- Use phpbb user database for WordPress
- WordPress to use Drupal users’ credentials
- Users roles, make a page belonging to multiple users
- How do I list in the backend all users that were assigned to a custom role?
- A way to count logged in users and display count?
- stop login if user_status equal zero
- How to add local users to wordpress without email password?
- Getting users by specific capability, not role
- wp_login_form() passing user ID into URL on redirect?
- How do i make my wordpress website private?
- Change the user_login at registration
- Are User Levels Still Currently Used?
- Max no of simultaneous active sessions for a single user
- Error: How to allow the “contributor” to upload media in wordpress
- Remove Capabilities from WP admin for specific user role
- When I try to login in wordpress it is showing “USER Doesn’t Exists”
- wordpress user roles are not working
- Displaying different in-page content to cliente/admin
- User capability for editing their own comments
- What are some best practices for user exit strategy?
- Is there a way to identify a user in a custom REST API method? [duplicate]
- wordpress disable login for unverified user
- Problem with automatic role change through cron job
- Reset Password policy
- Allow Contributors to Upload Files
- How can I allow an User to publish only 5 posts per month?
- Where are $current_user->allcaps set?
- How change user type from contributor to author
- WordPress Login Customization for External Authentication
- How do I let contributors edit their posts after being approved once?
- Is there any action /filter hook I can use to disable login for some user role?
- How to check User Role and redirect to specific page according to Role when login in WordPress?
- Load user by specific role
- How to hide user profile fields based on the role of the viewed user?
- Fix ‘Add Role’ Option not there in wordpress 5.2.2
- Allow Users to Modify Some Values of Assigned WordPress Pods [closed]
- Can I Create a Second Admin Level User Role?
- Check if user is logged in via JS? [duplicate]
- Assigning multiple or additional capabilities to specific users or how to create additional roles like bbpress roles?
- how do I add role and capability after I create a new user
- Get Authors Role
- Show errormessages on wrong username/password on custom loginform?
- wp_generate_password sets password but can’t login using created password
- add class to element if user is not logged in [closed]
- Editor role can only create/edit/delete users who have one of two roles
- Is there a way to call via javascript if a user is logged-in on a static html file?
- Restricting wordpress login sessions for a web app
- Find count of WordPress users by role and search string for user name
- Custom user roles are unable to login
- The same session information for peer users on two different WordPress servers
- Hook into add_user_role and update based on new and removed roles
- fine-grained capabilities for user related capabilities
- Updated user role inncorrect when using wp_get_current_user()
- In admin manage users page, how can I stop users with certain privileges from editing users with other privileges?
- Groups roles & capabilities
- Custom User Role: Can Edit Own Page, Cannot Create New
- Show user details only
- user and usermeta table not found
- Button for users to upgrade their user role + Button to show current user role!
- Restrict Access to the User Profile
- Subscriber role – blank page
- custom login form, guide me
- How to get only 1 role from user
- Front end login and page restriction
- User “none” role
- Redirect based on log-in status per JavaScript
- i need to let a user to add a role from a frontend form
- Integrating Facebook Registration (and Login) on a WordPress page
- Limit user access to installing/configuring a plugin?
- Increase by one the user counter on specific role
- Show only users with the same role in Dashboard user list
- determine active user browser at the same time
- Remove My Account Menu items in Woocommerce based on user roles
- WordPress: New user role which is ONLY allowed to manage media