PHPackages                             codeinwp/menu-item-custom-fields - 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. codeinwp/menu-item-custom-fields

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

codeinwp/menu-item-custom-fields
================================

Easily add custom fields to nav menu items.

07333PHP

Since Apr 27Pushed 5y ago2 watchersCompare

[ Source](https://github.com/Codeinwp/menu-item-custom-fields)[ Packagist](https://packagist.org/packages/codeinwp/menu-item-custom-fields)[ RSS](/packages/codeinwp-menu-item-custom-fields/feed)WikiDiscussions master Synced 5d ago

READMEChangelogDependenciesVersions (2)Used By (0)

Menu Item Custom Fields
=======================

[](#menu-item-custom-fields)

Easily add custom fields to nav menu items.

**Contributors:** [kucrut](https://profiles.wordpress.org/kucrut)
**Tags:** [menu](https://wordpress.org/plugins/tags/menu), [nav-menu](https://wordpress.org/plugins/tags/nav-menu), [custom-fields](https://wordpress.org/plugins/tags/custom-fields), [metadata](https://wordpress.org/plugins/tags/metadata)
**Requires at least:** 3.8
**Tested up to:** 4.7.2
**Stable tag:** 1.0.0
**License:** [GPLv2](http://www.gnu.org/licenses/gpl-2.0.html)
**Donate Link:**

[![Build Status](https://camo.githubusercontent.com/294978b6ca0f0b2f58025196e4332f5cf4cb9faa2b676248d1cefe9e366be751/68747470733a2f2f7472617669732d63692e6f72672f6b75637275742f77702d6d656e752d6974656d2d637573746f6d2d6669656c64732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/kucrut/wp-menu-item-custom-fields)

Description
-----------

[](#description)

### Breaking Change

[](#breaking-change)

Since version `1.0.0`, the first parameter passed to the `wp_nav_menu_item_custom_fields` is the menu item ID, instead of the nav menu ID. This should not have a big impact, since the nav menu ID passed was always `0` (not used by core).

This is a *library* plugin. It doesn't do anything visible on its own. It was written to allow other plugins/themes to add custom fields to menu items *easily*. See **Installation**.

Development of this plugin is done on [GitHub](https://github.com/kucrut/wp-menu-item-custom-fields). **Pull requests welcome**. Please see [issues reported](https://github.com/kucrut/wp-menu-item-custom-fields/issues) there before going to the plugin forum.

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

[](#installation)

### As regular plugin

[](#as-regular-plugin)

1. Upload `menu-item-custom-fields` to the `/wp-content/plugins/` directory
2. Activate the plugin through the 'Plugins' menu in WordPress

### As library in your plugin/theme

[](#as-library-in-your-plugintheme)

Simply copy `menu-item-custom-fields` to your plugin directory and require the main plugin file, eg: `require_once dirname( __FILE__ ) . '/menu-item-custom-fields/menu-item-custom-fields.php';`

### Usage

[](#usage)

Copy (and customize) and include the `menu-item-custom-fields-example.php` file found in the `doc/` directory of this plugin into your plugin/theme.

Changelog
---------

[](#changelog)

### 1.0.0

[](#100)

- Pass correct parameters to the `wp_nav_menu_item_custom_fields` hook, props [@helgatheviking](https://github.com/helgatheviking).

### 0.4.0

[](#040)

- Support WordPress 4.7, props [rahulnever2far](https://github.com/rahulnever2far).

### 0.3.0

[](#030)

- Use `wp_nav_menu_item_custom_fields` as walker hook. See this [blog post](http://shazdeh.me/2014/06/25/custom-fields-nav-menu-items/).
- Update example plugin

### 0.2.1

[](#021)

- Update compatibility info

### 0.2.0

[](#020)

- Improve walker class loader

### 0.1.1

[](#011)

- Move custom fields up (before ``)

### 0.1.0

[](#010)

- Initial public release

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3330746?v=4)[Marius Cristea](/maintainers/selul)[@selul](https://github.com/selul)

---

Top Contributors

[![HardeepAsrani](https://avatars.githubusercontent.com/u/2649903?v=4)](https://github.com/HardeepAsrani "HardeepAsrani (3 commits)")[![selul](https://avatars.githubusercontent.com/u/3330746?v=4)](https://github.com/selul "selul (3 commits)")

### Embed Badge

![Health badge](/badges/codeinwp-menu-item-custom-fields/health.svg)

```
[![Health](https://phpackages.com/badges/codeinwp-menu-item-custom-fields/health.svg)](https://phpackages.com/packages/codeinwp-menu-item-custom-fields)
```

###  Alternatives

[codeigniterext/maintenancemode

Maintenance Mode module for CodeIgniter 4

1011.3k](/packages/codeigniterext-maintenancemode)[digitalkaoz/yuml-php

a PHP Adapter for http://yuml.me

321.0k](/packages/digitalkaoz-yuml-php)

PHPackages © 2026

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