10,000+
August 19, 2026
October 29, 2012
Lets any Administrator simplify the WordPress Admin interface, on a per-user basis. Hide any specific menu or submenu (including in the admin bar) or hide the admin bar entirely.
User Admin Simplifier offers three menu control modes:
Existing per-user configurations are preserved. Existing installs see no change unless an Administrator switches modes. Regardless of mode, the User Admin Simplifier settings page (under Tools) always remains accessible to Administrators, so you can never lock yourself out.
composer install to install PHP dependenciesnpm install to install JavaScript dependenciesnpm run build to build the React applicationThis plugin uses PHPStan for static analysis to ensure code quality and type safety.
To run PHPStan:
composer install (first time only)
npm run phpstan
Or directly with PHP:
php vendor/bin/phpstan analyse
The project is configured to run PHPStan at level 3 for improved reliability and maintainability.
The plugin includes PHP unit tests, end-to-end (E2E) tests, and visual regression tests.
PHP Unit Tests
Run PHP unit tests:
npm run test:php
End-to-End Tests
E2E tests use Playwright to test the plugin in a real WordPress environment.
Setup:
npm installnpm run env:startnpm run test:e2eSee tests/e2e/README.md for detailed documentation on running and writing E2E tests.
Available E2E test commands:
npm run env:start – Start WordPress test environmentnpm run env:stop – Stop WordPress test environmentnpm run test:e2e – Run E2E tests in headless modenpm run test:e2e:headed – Run E2E tests with visible browsernpm run test:e2e:ui – Run E2E tests in interactive UI modenpm run test:e2e:debug – Run E2E tests in debug modenpm run test:e2e:report – View test reportVisual Regression Testing
This plugin uses Playwright for automated visual regression testing to catch unintended visual changes during development.
Prerequisites:
Initial Setup:
npm installnpx playwright install --with-deps chromiumnpm run buildRunning Visual Tests:
npm run test:visualnpm run test:visual:uinpm run test:visual:updateHow It Works:
Visual regression tests capture screenshots of the UI and compare them to baseline images. If there are visual differences, the tests will fail and generate a report showing what changed. This helps detect:
Test Coverage:
The visual tests cover:
– Initial app state (no user selected)
– User selector dropdown
– Full menu interface with user selected
– Menu list with toggle functionality
– Admin bar options
– Save and reset buttons
– Checked menu states
– Expandable submenus
– Responsive layouts (tablet and mobile views)
Updating Snapshots:
When intentional UI changes are made, update the baseline snapshots:
npm run test:visual:update
Review the changes in the tests/visual/app.spec.js-snapshots/ directory to ensure they match your intended changes.
CI Integration:
Visual regression tests run automatically on GitHub Actions for all pull requests and pushes to main/master branches. Test reports and snapshots are uploaded as artifacts for review.
Running All Tests
Run all tests (PHP unit tests + E2E tests):
npm run test
Install User Admin Simplifier either via the WordPress.org plugin directory, or by uploading the files to your server
That’s it. You’re ready to go! To edit your users menus, go to Tools->User Admin Simplifier
Submenus are now available for disabling. Note that disabling a top level menu removes it, no submenu items will be available. On the other hand, disabling all submenu items does not disable the top level menu.
Unininstalling and deleting the plugin will remove all of its settings.
Yes! In a multisite install, User Admin Simplifier works as follows:
Mark as compatible with WordPress 5.7.
Enabled editing the admin bar menus and submenus.
Enables hiding the admin bar entirely.
Tested up to WordPress 4.7.0.
Add icons for 4.0 plugin browser.
Tested up to WordPress 4.0.
Tested up to WordPress 3.9.1.
Make css class for +/- more specific to avoid conflicts.
Fixes issue with removing certain submenus, use sanitize_key for all key values.
Corrects a bug where $menu was unset causing an error message with some themes/plugins; added sanity isset check for $menu before trying to use.
Bug fixes, last update broke plugin for some users; also fixed issue with user_login used in one spot, user_nicename used in another. Code cleanup.
Bug fix.
axjzfnshmtr7f7ggjqovzuxjzxrlpbc7
| Version | Download | Type |
|---|---|---|
| 3.1.1 | Download | Stable |
| 3.1.0 | Download | Stable |
| 3.0.1 | Download | Stable |
| 1.0.1 | Download | Stable |
| 1.0.0 | Download | Stable |
| 0.7.1 | Download | Stable |
| 0.7.0 | Download | Stable |
| 0.6.5 | Download | Stable |
| 0.6.4 | Download | Stable |
| 0.6.3 | Download | Stable |
| 0.6.2 | Download | Stable |
| 0.6.1 | Download | Stable |
| 0.6 | Download | Stable |
| 0.5.4 | Download | Stable |
| 0.5.3 | Download | Stable |
| 0.5.2 | Download | Stable |
| 0.5.1 | Download | Stable |
| 0.5 | Download | Stable |
| 0.4.2 | Download | Stable |
| 0.3.1 | Download | Stable |
| 0.3 | Download | Stable |
| Development | Download | Trunk |