Skip to content
Read For Learn
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP

Is possible to allow user to login with different role?

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:

  1. Is it possible to get a user with just the password field?
  2. Redirect after login based on user role (custom login page)
  3. Does wordpress support natively the concept of logging-in users? (not admins, but users of the website)
  4. How to change default username field after login
  5. WordPress – Security Question at Login from User’s Meta Data
  6. How to authenticate/verify login credentials & check for user meta without logging in?
  7. Redirect Login Based on User Role
  8. If the current user is an administrator or editor
  9. Editor can create any new user except administrator
  10. How to allow an user role to create a new user under a role which lower than his level only?
  11. Remove Ability for Other Users to View Administrator in User List?
  12. Find out if logged in user is not subscriber
  13. Groups of capabilities: users with multiple roles?
  14. User-edit role setting distinct from wp_capabilities? [closed]
  15. Replacing the WordPress password validation
  16. Allowing users to edit only their page and nobody else’s
  17. alphabetically order role drop-down selection in dashboard
  18. WordPress auto login after registration not working
  19. Execute a function when admin changes the user role
  20. How to let contributors to create a new revision(draft) editing their published posts
  21. Disallowing Users of a Custom Role from Deleting or Adding Administrators?
  22. What the user_status column?
  23. Hide Admin Menu for Specific User ID who has administrator Role
  24. Allow up to 5 Concurrent Login Sessions
  25. How to hide media uploads by other users in the Media menu?
  26. Show admin bar only for some USERS roles
  27. Grouping users under parent user
  28. How to update user role without logout
  29. How to check user role without using current_user_can()
  30. Multi-steps WordPress registration : in 4 steps how to?
  31. Why does is_user_logged_in() return false after redirect from another site?
  32. Do not allow users to create new posts and pages
  33. \WP_User Object | What’s the Difference Between {caps} and {allcaps}?
  34. How to enable the theme editor cap for an editor role?
  35. How to assign capabilities to user NOT to User Role
  36. How to assign an additional/extra/second user-role to multiple users (of a specific user-role)
  37. How to stop a user from updating the post date
  38. BuddyPress | Check if user is in current group [closed]
  39. Pre-populate Username Field
  40. Return ID of authors who have at least one post
  41. WordPress edit_user_profile_update update secondary role
  42. How to keep track of user logins?
  43. How do I properly format the user_role array?
  44. How-to Delay The Capability To Publish Posts?
  45. Get user info outside WordPress
  46. How can I secure a WordPress blog using OpenID from a single provider?
  47. How to customize wp_signon()
  48. Is there a simple way to manage capabilities per user?
  49. How to get the Role Name of the current user? (WordPress)
  50. set_role has no effect
  51. Check for user meta data at Login
  52. WP_User->add_role producing unexpected results
  53. How can I check if the admin bar is visible to the current user?
  54. Redirect User to Homepage if no other redirect is specified
  55. Can I create users that have access to *some* other users posts instead of all other users posts?
  56. My custom page template with is_user_logged_in() does not detect that I’m logged in
  57. Set default page for user account in admin
  58. Use phpbb user database for WordPress
  59. WordPress to use Drupal users’ credentials
  60. Users roles, make a page belonging to multiple users
  61. Tagging users in WordPress
  62. Redirect after users complete profile form
  63. Share user table from WP with Drupal
  64. How do I list in the backend all users that were assigned to a custom role?
  65. How can I allow password reset based on logins containing the @ character?
  66. A way to count logged in users and display count?
  67. stop login if user_status equal zero
  68. How to add local users to wordpress without email password?
  69. Hide everything on site for visitors except specific page IDs
  70. Get User Role by ID not working
  71. the_author_meta(‘user_url’, $author->ID) not working properly. how can I solve this?
  72. Getting users by specific capability, not role
  73. add_cap not working with Shop Manager role
  74. wp_login_form() passing user ID into URL on redirect?
  75. Restricting frontend acess based on user role otherwise redirect to login form
  76. How do i make my wordpress website private?
  77. Managing Users and Creating Groups [closed]
  78. Redirect user to login before viewing custom post
  79. Change the user_login at registration
  80. How to disable a specific page for a specific user
  81. Are User Levels Still Currently Used?
  82. Max no of simultaneous active sessions for a single user
  83. Error: How to allow the “contributor” to upload media in wordpress
  84. Remove Capabilities from WP admin for specific user role
  85. When I try to login in wordpress it is showing “USER Doesn’t Exists”
  86. Updating wp_user_level on user update
  87. wordpress user roles are not working
  88. Displaying different in-page content to cliente/admin
  89. Should I encrypt the response that triggers an Ajax action? Is nonce sufficient?
  90. Fix permissions for users role
  91. Redirect subscribers to last viewed page after log-in
  92. User capability for editing their own comments
  93. What are some best practices for user exit strategy?
  94. Is there a way to identify a user in a custom REST API method? [duplicate]
  95. wordpress disable login for unverified user
  96. Problem with automatic role change through cron job
  97. Reset Password policy
  98. Allow Contributors to Upload Files
  99. Rewrite Rules and Login Issue
  100. How can I allow an User to publish only 5 posts per month?
Categories users Tags login, user-roles, users, wp-login-form
How to create a meta_query to get all posts with a specific meta data?
Ajax comment form submit on frontpage alerts success but no insertion

Recommended Hostings

Cloudways: Realize Your Website's Potential With Flexible & Affordable Hosting. 24/7/365 Support, Managed Security, Automated Backups, and 24/7 Real-time Monitoring.

FastComet: Fast SSD Hosting, Free Migration, Hack-Free Security, 24/7 Super Fast Support, 45 Day Money Back Guarantee.

Recent Added Topics

  • Bug in translation system: load_theme_textdomain() returns true, files are available and accessible but the language defaults to english
  • Custom Elementor controls not appearing in the widget Advanced tab using injection hooks
  • Get the name of the template/*html file used
  • Trying to Add Paging to Single Post Page
  • Sharing media files between live and staging servers
  • How to display the description of a custom post type in the dashboard?
  • Critical error on image display
  • Copying WP data and files into new install?
  • How to determine the DirectAdmin WordPress backup date?
  • How to get list of ALL tables in the database?
© 2026 Read For Learn
  • Database
    • Oracle
    • SQL
  • algorithm
  • asp.net
  • assembly
  • binary
  • c#
  • Git
  • hex
  • HTML
  • iOS
  • language angnostic
  • math
  • matlab
  • Tips & Trick
  • Tools
  • windows
  • C
  • C++
  • Java
  • javascript
  • Python
  • R
  • Java Script
  • jQuery
  • PHP
  • WordPress