PHPackages                             nsrosenqvist/cmb2-nav-menus - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. nsrosenqvist/cmb2-nav-menus

AbandonedArchivedWordpress-plugin[Utility &amp; Helpers](/categories/utility)

nsrosenqvist/cmb2-nav-menus
===========================

1.0.1(7y ago)3411[1 issues](https://github.com/nsrosenqvist/cmb2-nav-menus/issues)MITPHPPHP &gt;=7.0.0

Since Jun 18Pushed 7y ago5 watchersCompare

[ Source](https://github.com/nsrosenqvist/cmb2-nav-menus)[ Packagist](https://packagist.org/packages/nsrosenqvist/cmb2-nav-menus)[ Docs](https://github.com/nsrosenqvist/cmb2-nav-menus)[ RSS](/packages/nsrosenqvist-cmb2-nav-menus/feed)WikiDiscussions master Synced yesterday

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

CMB2 Nav Menus
==============

[](#cmb2-nav-menus)

*Lets you use CMB2 in nav menu entries.*

Register menu location to enable CMB2:

```
// Add filter for locations
add_filter('cmb2_nav_menus', function($menu_slugs) {
    $menu_slugs[] = 'my_menu';

    return $menu_slugs;
}, 10, 1);
```

Register CMB2 fields for menu:

```
// For all menus
add_filters('cmb2_nav_menu_fields, function($fields) {
    // You can set ID both as the key and in the array
    $fields['icon-class'] = [
        'name' => __( 'Icon Class', 'theme' ),
        'type' => 'fontawesome_icon',
        'help' => 'Choose a FontAwesome icon class name (eg. fa-circle)',
    ];
}, 10, 1);

// For specific menu
add_filters('cmb2_nav_menu_fields_my_menu, function($fields) {
    // You can set ID both as the key and in the array
    $fields['disabled'] = [
        'name' => __( 'Disabled', 'theme' ),
        'type' => 'checkbox',
        'style' => 'thin',
    ];
}, 10, 1);
```

Get the nav menu item option with the included helper:

```
cmb2_get_nav_option($menu_item_id, $key = '', $default = null);
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance13

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Every ~0 days

Total

2

Last Release

2885d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/bc4837ce5eb1f32142e8aefef1d53e10ae638fcff864e1c7c67c1e5b2b496e85?d=identicon)[nsrosenqvist](/maintainers/nsrosenqvist)

---

Top Contributors

[![nsrosenqvist](https://avatars.githubusercontent.com/u/1303475?v=4)](https://github.com/nsrosenqvist "nsrosenqvist (2 commits)")

### Embed Badge

![Health badge](/badges/nsrosenqvist-cmb2-nav-menus/health.svg)

```
[![Health](https://phpackages.com/badges/nsrosenqvist-cmb2-nav-menus/health.svg)](https://phpackages.com/packages/nsrosenqvist-cmb2-nav-menus)
```

###  Alternatives

[rankmath/seo-by-rank-math

Rank Math is the most powerful way to get BEST WordPress SEO tools added to your website.

1252.0k](/packages/rankmath-seo-by-rank-math)

PHPackages © 2026

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