Anyone with a login can access the admin area, even if they’re just a subscriber that can read posts and nothing more.
The crucial difference is not in the login, but in what parts of the admin one gets access to. A subscriber will only be able to see his personal profile, for instance. And admin gets access to everything. Others get something inbetween.
If you build a new user role, you can determine exactly what he or she gets acces to, by assigning one or more of the 58 capabilities to that role.
The general syntax to add a new role is like this: add_role( $role, $display_name, $capabilities ), where the last variable is an array of the capabilities you want to assign to this role. Only these capabilities will be available to those users in the admin area.
Related Posts:
- How to check if a user is in a specific role?
- How to prevent access to wp-admin for certain user roles?
- Check if user is admin by user ID
- Only allow administrators and editors to access wp-admin
- create users to site with specific language
- Prevent from deleting any user role but subscriber
- Displaying which Role the current user is assigned to
- How to hide a specific user role option in a user role list?
- Adding HTML/Text to Top of Subscriber’s Profile Backend Page
- Custom role based users are not able to access wp-admin
- Custom roles showing HTML entities in title form field
- Users Unable to Access Dashboard/Posts/Pages
- Only allow administrators and editors to access wp-admin
- Allow administrators to pick post author on custom post type edit screen
- Adding Custom Capabilites
- Restrict Author role to only 3 wp-admin pages
- Why is unfiltered_upload not working despite being enabled?
- Logout USER form backoffice after 30 minutes of inactivity [closed]
- Downgrade admin account by mistake
- How to set where user is redirected to after logging in at wp-login?
- User Capabilities are not available in WP REST permission callback?
- Change users.php WP_User_Query
- User Roles: How to hide a plugin from showing in WP-Admin?
- Is WordPress secure enough for a multi-user article directory?
- Newly created user role not displaying on users screen
- How to check if a user is in a specific role?
- Give wp-admin access for shop managers
- adding existing menu page on new customer user role
- Extend user search in the users.php page to allow for searching by role and excluding specified email domains from the “users search” input box
- how to Hide all products except the General Manager role in the WordPress admin panel?
- How do I Enqueue styles/scripts on Certain /wp-admin Pages?
- adding custom stylesheet to wp-admin
- Disable dragging of meta boxes?
- Toggle admin metabox based upon chosen page template
- How to remove the core embed blocks in WordPress 5.6?
- How to order by post meta name in wp admin?
- How set defaults on wpLink()
- Remove dashboard, use Pages tab as default
- My wordpress site gets redirected automatically to the old site any known solution for this?
- How to list ALL Pages in the dashboard?
- Is there un-wp_autop function?
- “leftover” notifications left on ever admin screen?
- Excerpt textarea missing on post editing page in admin panel
- WordPress in sub directory wp-admin problem
- Admin account only shows Profile and Dashboard with no activity
- Adding body class to login page?
- Edit a WordPress site without the username and password?
- WordPress admin menu gap when debug mode is enabled?
- Call to undefined function insert_with_markers
- How can I remove the new stats message? [closed]
- How to inhibit dashboard and profile management access to normal users?
- Admin Blank Page with Working Front-End After Updating to WordPress 4.6
- Why can’t I exclude private posts from this query?
- Auto create post title in admin
- Cannot Access Admin Area After Migration
- Modify wp-admin page header ‘viewport’ meta data
- The uploaded file exceeds!
- Having troubles connecting to WordPress login page using Mamp
- Remove or move admin submenus under a new menu
- Admin comments and user restrictions
- Can I hook into wp_update_core outside of the admin?
- /wp-admin/ doesn’t work but /admin/ does
- Renaming wp-admin without hard-coding it. Is it really possible?
- WordPress Side Menu Admin Panel Default Order numbers List?
- Why can I log into wp-login.php and not wp-admin.php?
- add_submenu_page() issue
- Unable to properly login
- Is there a simple way to set wordpress site files back to out of the box?
- How to check if it’s edit.php & post_type is set?
- Dashboard : remove Safari navigator message
- how to stop wordpress admin menu from scrolling with page
- Contextual help in wp-admin for non admins
- How to have WP admin in English while public website is in another language?
- Trying to create a page as a menu item in the admin while keeping the admen panel visible
- Manage Admin permissions by URL GET parameters
- Step by step guide for new users on how to post content?
- Display Form in Admin Panel and Save data to Database
- Cannot log in to WordPress admin or change password
- 403 Error when using save buttons
- Cached php? Updates are rendering only if logged as admin
- Js errors in wp-admin
- Avoid executing a function (redirect) if I’m in the admin area
- Wp-admin loguts me. When sign with Wp_singon
- Localhost install: Administrator lost administrator access; cannot access Dashboard
- Symlinking WordPress WP-ADMIN and WP-INCLUDES
- sharing wp-include – wp-admin on same installation
- admin_print_styles incuding $_SERVER[‘DOCUMENT_ROOT’]
- Admin Scripts enqueue codes seems ok but not working
- admin-post.php results on white screen after form submission
- CSS not showing up in my website Only HTML Displaying
- Change height of Add New Post input box
- How to protect wp-admin from third party access?
- Unable to access my plugins [closed]
- Can admin-ajax.php be used for spam purposes? And if yes, how to prevent that?
- Override WordPress Core File?
- WordPress Users page missing user count next to different types of users
- Not receiving verification email to update administrator email in wordpress
- wp-admin/admin-ajax.php 400 Bad request (chrome console)
- Is there a way to get the WP Admin Header to inject as the first element in the body instead of the last?
- Creating an custom admin page from scratch