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?
- sortable custom column in media library
- how do I force a single column layout in screen layout
- Sortable admin columns, when data isn’t coming from post_meta
- wp_list_table search box does not show
- How to remove the site health dashboard widget?
- stop redirection on /wp-admin call to /wp-login
- How to Display Post Excerpts in Admin by Default?
- Wp3.5 Media Gallery Edit modal: change captions to title
- How can I set up multi language admin ui?
- How to display multiple custom columns in the wp-admin users.php?
- WordPress custom permalinks not working on OS X localhost
- How to Remove Checkbox for Excerpt Under Screen Options
- Change Dashboard url
- WordPress subdomain wp-admin redirects to main domain
- Remove order field from Page Attributes box
- Disable the administration email address verification (new in 5.3)
- WordPress 3.2 Admin UI Guide
- https://mydomain/wp-admin redirects to wp-login.php?redirect_to=https%3A%2F%2Fmydomain%2Fwp-admin%2F&reauth=1
- /wp-admin/ works but website doesn’t load
- Why isn’t my email showing up as registered with WordPress anymore?
- Unable to locate WordPress Root directory
- Add column to pages table
- 404 redirect wp-login and wp-admin after changing login url [closed]
- My email address is displaying an email which does not work. What do i do?
- More than one admin logged in?
- How do I let logged out users see the dashboard?
- Deploying WordPress for clients – what do they have access to?
- Removing Dashboard Menu Items Through The Database
- load-{$page hook} and returned parameter
- Can’t access wp-admin, redirects to http://%24domain/wp-admin/
- Is there any way to make myself an admin?
- Can log as admin but dashboard missing [closed]
- How to allow WordPress updates to only one specific administrator?
- How can I remove commas when adding tags?
- Displaying Title in Title Tag on Edit page?
- Cannot change Connection Information in admin interface
- Add custom fields to a page template, admin side
- Error messages & can’t reach admin after upgrading to 3.4.1 WordPress
- WordPress blog clone.. wp-admin issue
- How to take the help button and link off the dashboard
- Could not override the url in wp-config file
- How do I fix wp-admin error when exporting reusable blocks?
- Can’t acces login on new site
- WordPress Admin Panel Left Sidebar No showing on Post create page
- How to remove the color picker code from users-edit.php
- wp-config.php not affecting my site
- How to prevent spams from admin-ajax.php file?
- After changing Site http to https, can’t access wp login page with a digitalocean hosting
- Strange wp-admin problem for all users/adminstrators except the original one?
- Get rendered HTML of Page in Admin Area
- Having SSL enabled on admin, but disabled on post preview and live preview?
- stop customize.php redirect to login page if admin is not logged in
- Google flagged a wp-admin redirect as phishing
- Organising and display thousands of photos in media library
- Problem with admin columns
- Checkbox not showing as checked on UserProfile (even with checked=”checked”)
- Get URL of current featured image with JS in edit post view
- Custome column sort by date not title
- Block tools menu in wp-admin?
- WordPress Admin: open popup window on a custom button
- No HTML/Visual mode option in admin panel (New Post)
- Removing Author name
- Taking over a WordPress site
- WordPress blog fails to open
- LinkControl not showing suggestions when used on admin page
- After Upgrade: $user becomes unknown (id: 0) after successful login?
- Redirect users based on their roles, is_admin()
- insert an admin table inside another admin page
- /wp-admin/ – this link showing me “Index of /wp-admin”/ instead of dashboard
- What methods are you using to transfer individual WP site components from one site to another?