- Contributors: DrewAPicture
- Donate link: http://www.werdswords.com
- Tags: dashboard, access, users, administration
- Requires at least: 3.1
- Tested up to: 3.5.1
- Stable tag: 1.0
This WordPress plugin limits user access to the dashboard based on whether users have a chosen capability. Disallowed users are redirected to a chosen URL.
- Limit Dashboard access to Administrators only, or limit by specific capability.
- Allow/disallow user profile access
- Choose your own redirect URL
- See Other Notes for more info
A full list of capabilities and their associated roles can be found here: http://codex.wordpress.org/Roles_and_Capabilities
This plugin is in active development on GitHub. If you'd like to contribute, pull requests are welcome!
- Upload
remove-wp-dashboard-access.phpto the/wp-content/plugins/directory - Activate the plugin through the 'Plugins' menu in WordPress
Users lacking the chosen capability or role will be redirected to the URL set in Settings > Dashboard Access.
- You can now limit Dashboard access to Admins or by selecting a capability. More information on WordPress' default roles and capabilities can be found here: http://codex.wordpress.org/Roles_and_Capabilities
- You can now allow or disallow the ability for all users to edit their profiles in the Dashboard. Users lacking the chosen capability won't be able to access any other sections of the Dashboard.
This hides some built-in WordPress Toolbar menus by default, but can be extended to hide menus from other plugins or themes via two filters: rda_toolbar_nodes, and rda_frontend_toolbar_nodes.
- In the HTML page source, look for the
<li>container for the menu node you're targeting. It should take the form of<li id="wp-admin-bar-SOMETHING"> - In
<li id="wp-admin-bar-SOMETHING">, you want the "SOMETHING" part.
function hide_some_toolbar_menu( $ids ) {
$ids[] = 'SOMETHING';
return $ids;
}
add_filter( 'rda_frontend_toolbar_nodes', 'hide_some_toolbar_menu' );
- JetPack by WordPress.com (Notifications) - 'notes'
- WordPress SEO by Yoast - 'wpseo-menu'
- W3 Total Cache - 'w3tc'
-
The new 1.0 accesss options screen.
-
Allow users to access their profile settings (only).
- Complete rewrite!
- New: Limit dashboard access for Admins only or by capability
- New: Allow/disallow edit-profile access
- New: Choose your own redirect URL
- New Filter:
rda_default_access_cap- Change default access capability - New Filter:
rda_toolbar_nodes- Filter which back-end Toolbar nodes are hidden - New Filter:
rda_frontend_toolbar_nodes- Filter which front-end Toolbar nodes are hidden
- Refined DOING_AJAX check for logged-out users, props @nacin and @BoiteAWeb
- Changed cap to manage_options, replaced PHP_SELF with DOING_AJAX
- Replaced preg_match with admin-ajax test. Added compatibility with rewritten dashboard URLs.
- Submitted to repository