Dahu Roles Interface
Plugin pour personnaliser facilement l'interface des différents rôles
by Hugo Vial-Jaime · github.com/epilouptique/dahu-roles-interface · 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/epilouptique/dahu-roles-interface/archive/refs/heads/main.zipFine-grained, per-role customization of the WordPress/WooCommerce admin interface.
Description
Dahu Roles Interface lets site administrators tailor the WordPress back office for each user role. Hide admin menus, submenus and admin-bar items, choose a landing page after login, control which user accounts each managing role may edit, highlight hand-written WooCommerce order notes, and hide unwanted back-office elements (such as persistent third-party plugin notices) with plain CSS selectors — all configured per role from a single settings page.
The Administrator role is never restricted.
Features
- Menus & submenus — hide any admin menu or submenu per role, including menus that some plugins promote to top level for restricted roles.
- Admin bar — hide individual admin-bar nodes, or hide the whole admin bar entirely (including WooCommerce header adjustments).
- Start page — send a role directly to a chosen admin page after login instead of the Dashboard.
- Log out button — optionally add a "Log out" entry at the bottom of the admin menu, handy when the admin bar is hidden.
- Editable accounts — define, per managing role, which user roles it may view, edit, create and delete (extends the native WooCommerce Shop Manager behavior to any custom manager role). Sensitive roles can never be made editable, and low-privilege roles can never become managers.
- Order notes highlighting — visually emphasize hand-written WooCommerce order notes over auto-generated ones (status changes, stock updates, refunds, tracking...). Pattern list filterable via
dahu_notes_highlight_auto_patterns. - Back-office element hiding — per role, hide any element by CSS selector (e.g.
.notice.notice-warning) to clean up persistent plugin nags. - CSV export/import — back up or replicate the full configuration as a simple
role,type,valueCSV file. - Capability fix — adds missing Flamingo (Contact Form 7) capabilities to the Editor role when needed.
Installation
- Download
dahu-roles-interface.zip. - In your WordPress admin, go to Plugins → Add New → Upload Plugin and upload the zip.
- Activate Dahu Roles Interface.
- Open Settings → Dahu Interface to configure.
Requires WordPress 6.0+, PHP 7.4+, and WooCommerce 7.0+ for the WooCommerce-related features (the plugin runs safely without WooCommerce).
Configuration
- Go to Settings → Dahu Interface.
- Pick a role in the dropdown (Administrator is not configurable).
- Configure each section: start page, menus, admin bar, order notes, hidden CSS selectors, editable accounts.
- Save with Enregistrer les réglages pour ce rôle.
- Optionally export/import the whole configuration as CSV at the bottom of the page.
Note: this plugin controls which accounts are editable by a managing role; the underlying capabilities (list_users, edit_users, ...) must be granted separately (e.g. with a role editor plugin).
Changelog
2.0.1
- Compliance release: normalized plugin header, plugins-page meta row, README/LICENSE files, standardized zip name.
2.0.0
- Everything is now configured per role: back-office element hiding (CSS selectors), editable accounts (any authorized role can become an account manager), and the new hand-written order-notes highlighting. Automatic migration of previous global settings. Extended CSV format.
1.9.x
- Full admin-bar hiding hardened (WooCommerce header/activity panel), admin-bar list in 3 columns, export/import moved to the bottom, fix for submenu pages promoted to top-level menus.
1.8.0
- Menus list in 3 columns, per-role "Log out" menu button, generic toggle-all.
1.7.x
- Independent save handlers per section; whitelist validation fix for role slugs.
1.6.0
- Editable accounts for the Shop Manager (WooCommerce filter).
1.5.0
- Full admin-bar hiding, per-role start page, settings menu renamed "Dahu Interface".
1.4.0
- Per-role full admin-bar hiding option, toggle-all checkboxes, global CSS hiding section.
1.3.0 and earlier
- Initial versions: per-role menu/submenu/admin-bar hiding, CSV export/import, settings migration, Flamingo capability fix.
License
GPL v2 or later — see LICENSE.