PHPackages                             kaiseki/wp-admin-menu - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Admin Panels](/categories/admin)
4. /
5. kaiseki/wp-admin-menu

ActiveLibrary[Admin Panels](/categories/admin)

kaiseki/wp-admin-menu
=====================

Customize the WordPress admin menu: reorder entries, add separators, and conditionally remove menu pages

1.0.0(1mo ago)0901MITPHPPHP ^8.2CI passing

Since Jun 1Pushed 3w ago2 watchersCompare

[ Source](https://github.com/kaisekidev/kaiseki-wp-admin-menu)[ Packagist](https://packagist.org/packages/kaiseki/wp-admin-menu)[ Docs](https://github.com/kaisekidev/kaiseki-wp-admin-menu)[ RSS](/packages/kaiseki-wp-admin-menu/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (19)Versions (3)Used By (0)

kaiseki/wp-admin-menu
=====================

[](#kaisekiwp-admin-menu)

Customize the WordPress admin menu: reorder entries, add separators, and conditionally remove menu pages.

Three `kaiseki/wp-hook` `HookProviderInterface`s wired through `ConfigProvider`, all driven by the `admin_menu` config key:

- **`ChangeAdminMenuOrder`** — sets a custom top-level menu order; entries not listed are appended.
- **`AddAdminMenuSeparators`** — registers a number of named separators you can place in the order.
- **`RemoveAdminMenuPages`** — removes menu pages, optionally gated by a `kaiseki/wp-context``ContextFilterInterface` (e.g. by capability or context).

Installation
------------

[](#installation)

```
composer require kaiseki/wp-admin-menu
```

Requires PHP 8.2 or newer.

Usage
-----

[](#usage)

Register `ConfigProvider` with your laminas-style config aggregator, configure `admin_menu`, and activate the providers via `kaiseki/wp-hook`:

```
use Kaiseki\WordPress\AdminMenu\AddAdminMenuSeparators;
use Kaiseki\WordPress\AdminMenu\ChangeAdminMenuOrder;
use Kaiseki\WordPress\AdminMenu\RemoveAdminMenuPages;

return [
    'admin_menu' => [
        // Custom top-level order; '{#}' is replaced by the next custom separator index.
        'order' => [
            'index.php',
            'custom-separator-{#}',
            'edit.php',
            'upload.php',
        ],
        'separator_index_placeholder' => '{#}',
        'debug' => false,
        'additional_menu_separators' => [
            'count'  => 1,
            'prefix' => 'custom-separator-',
        ],
        // handle => true (always) | ContextFilter class-string | list of filters
        'remove_menu_pages' => [
            'edit-comments.php' => true,
        ],
    ],
    'hook' => [
        'provider' => [
            AddAdminMenuSeparators::class,
            ChangeAdminMenuOrder::class,
            RemoveAdminMenuPages::class,
        ],
    ],
];
```

`ConfigProvider` registers a factory for each provider; they read their slice of `admin_menu` from the container. Set `admin_menu.debug` to `true` to dump the computed order (on local/development environments, detected via `kaiseki/wp-env`) while setting it up.

Development
-----------

[](#development)

```
composer install
composer check   # check-deps, cs-check, phpstan
```

License
-------

[](#license)

MIT — see [LICENSE](LICENSE).

###  Health Score

44

—

FairBetter than 90% of packages

Maintenance94

Actively maintained with recent releases

Popularity16

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

33d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1c3a6b11aea9668c9e9ca0c0f8515ef114d344acb552c695d715d35d5b388ea4?d=identicon)[woda](/maintainers/woda)

---

Top Contributors

[![davidmondok](https://avatars.githubusercontent.com/u/3883758?v=4)](https://github.com/davidmondok "davidmondok (8 commits)")[![wolfgangschaefer](https://avatars.githubusercontent.com/u/26325205?v=4)](https://github.com/wolfgangschaefer "wolfgangschaefer (7 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/kaiseki-wp-admin-menu/health.svg)

```
[![Health](https://phpackages.com/badges/kaiseki-wp-admin-menu/health.svg)](https://phpackages.com/packages/kaiseki-wp-admin-menu)
```

###  Alternatives

[symfony/symfony

The Symfony PHP framework

31.4k87.2M2.2k](/packages/symfony-symfony)[symfony/dependency-injection

Allows you to standardize and centralize the way objects are constructed in your application

4.2k455.6M9.6k](/packages/symfony-dependency-injection)[api-platform/core

Build a fully-featured hypermedia or GraphQL API in minutes!

2.6k51.2M339](/packages/api-platform-core)[moonshine/moonshine

Laravel administration panel

1.3k253.1k81](/packages/moonshine-moonshine)[ecotone/ecotone

Enterprise architecture layer for Laravel and Symfony — CQRS, Event Sourcing, Durable Workflows (Sagas, Orchestrators), Projections, and Outbox messaging via PHP attributes.

564576.7k53](/packages/ecotone-ecotone)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
