
* array (maybe) filtered front-end Toolbar menu IDs. * Filter hidden Toolbar menus on the front-end. I'm not sure, but I believe you cannot modify the user roles to block the Dashboard (as even the lowest role has access to it). In case of hiding the Dashboard, you can define to what page the user will be redirected. How to filter the disallowed Toolbar nodes on the front-end: /** It is possible to hide the Dashboard (and many other things) based on the user role. In the HTML page source, look for the container for the menu node you’re targeting.Remove Dashboard Access removes 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 (viewing from the admin), and rda_frontend_toolbar_nodes (viewing from the front-end).Hiding other plugins/themes’ Toolbar menus: Supply a message to display on the login screen.Users lacking the chosen capability won’t be able to access any other sections of the Dashboard. You can optionally allow all users the ability to edit their profiles in the Dashboard.More information on WordPress’ default roles and capabilities can be found here: You can limit Dashboard access to Admins only, Editors or above, Authors or above, or by selecting a capability.
TOTALSPACES 2 REMOVE DASHBOARD CODE
This plugin is in active development on GitHub. For GUI dashboards, you cannot remove the default gui dashboard as that is the default entrypoint for new users, but you can open the dashboard in raw mode, copy and past all the code to the default dashboard, and remove the other one. Optionally display a message on the login screen.Limit Dashboard access to admins only, admins + editors, admins + editors + authors, or limit by specific capability.
