Dashboard Access Denied
A lightweight WordPress plugin that restricts dashboard access for subscribers and other non-editor users. The plugin hides the admin bar and redirects unauthorized users away from the WordPress admin area.
by Gulshan Chauhan · github.com/gulshanbasouli/access-denied-wordpress · website
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/gulshanbasouli/access-denied-wordpress/archive/refs/heads/main.zipReadme
Dashboard Access Denied
A lightweight WordPress plugin that restricts dashboard access for subscribers and other non-editor users. The plugin hides the admin bar and redirects unauthorized users away from the WordPress admin area.
Features
- Disable WordPress admin bar for subscribers
- Restrict dashboard access for users without post editing capabilities
- Automatically redirect unauthorized users to the website homepage
- Lightweight and easy to use
- No configuration required
Installation
- Download the plugin files.
- Upload the plugin folder to:
/wp-content/plugins/ - Activate the plugin through the WordPress Admin Dashboard.
- The plugin will automatically start restricting dashboard access for unauthorized users.
How It Works
Admin Bar Restriction
Users who do not have the edit_posts capability will not see the WordPress admin bar when browsing the website.
Dashboard Access Restriction
Users who do not have the edit_posts capability are prevented from accessing the WordPress admin dashboard and are redirected to the site's homepage.
Ideal For
- Membership websites
- Client portals
- Community websites
- Educational platforms
- Websites with subscriber-only accounts
Requirements
- WordPress 5.0+
- PHP 7.4+
Author
Gulshan Chauhan
Plugin URI
https://github.com/gulshanbasouli/access-denied-wordpress
License
GPL v2 or later