
外掛標籤
開發者團隊
② 後台搜尋「AdBear Roles and Admin Access Manager」→ 直接安裝(推薦)
原文外掛簡介
AdBear Roles and Admin Access Manager helps site owners and agencies control what each WordPress user role can see and do in the admin area — without writing custom code.
Use one admin menu to:
Create, edit, clone, and delete custom roles
Assign built-in and custom capabilities
Hide admin menus and block direct URL access to hidden pages
Control dashboard widgets and admin bar items by role
Set login redirect URLs after sign-in
Limit Advanced Custom Fields (ACF) field groups by role
Customize the wp-login screen (logo, colors, layout)
The administrator role is always protected and cannot be edited or deleted through this plugin.
This plugin does not handle front-end membership or user registration forms. It focuses on admin access control and login branding.
Getting started
All settings are under AdBear Roles in the WordPress admin. You need the manage_options capability (typically an Administrator).
Step 1: Roles & Capabilities
Go to AdBear Roles → Roles & Capabilities.
To add a role, enter a Role key (lowercase, no spaces, e.g. shop_manager) and a Role label (display name).
Check the capabilities the role should have, or add custom capability names in the text field.
Click Save role.
To copy an existing role, use Clone role and provide a new key and label.
To change the role assigned to new registrations, pick a role under Default registration role and click Save default role.
Step 2: Admin menu visibility
Go to AdBear Roles → Admin Menu Visibility.
Select the role from the dropdown.
Enable Enable menu restrictions for this role.
Check only the menu items that role should see.
Click Save menu rules.
Hidden menus are removed from the sidebar. If a user visits a hidden page by URL, access is denied.
Step 3: Dashboard widgets
Go to AdBear Roles → Dashboard Widgets.
Select the role, enable restrictions, and check the widgets to keep visible.
Click Save dashboard rules.
Step 4: Admin bar
Go to AdBear Roles → Admin Bar.
Select the role, enable restrictions, and check the admin bar items to keep.
Click Save admin bar rules.
Step 5: Login redirects
Go to AdBear Roles → Login Redirects.
Enter an internal URL for each role that should redirect after login (leave blank to use WordPress default).
Click Save redirects.
Step 6: ACF field groups (optional)
Requires the Advanced Custom Fields plugin.
Go to AdBear Roles → ACF Group Visibility.
Select the role, enable restrictions, and check the field groups to show.
Click Save ACF rules.
Step 7: Login & branding
Go to AdBear Roles → Login & Branding.
Enable branding, then set logo, background, button color, layout, and optional admin footer text.
Click Save branding settings.
To test, log out and open your site’s wp-login.php page, or log in as a user with the role you configured.
