Found Image Menu Item Custom Fields | Plugin Review Network Skip to Content

Plugin Review Network

Plugin Review Network

an eye on the best wordpress plugins
Show Sidebar Hide Sidebar
[+] Sidebar [-] Sidebar
Plugin:
Rated:
90%
4.5 Stars (13 votes)

Home

WP.Org

ReadMe

Support
  • Author:
    Dzikri Aziz
Version: 1.0.0
Requires: WP 3.8
Last Updated:3285 days ago
Downloads:11519
Installations: 2,000+
Tags:
    custom fields, menu, metadata, nav menu
Download Plugin Package

Menu Item Custom Fields

Released on February 20, 2014.
Download Plugin Package

Version: 1.0.0

Easily add custom fields to nav menu items.

  • Description
  • Changelog
  • Installation


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. Pull requests welcome. Please see issues reported there before going to the plugin forum.

1.0.0

  • Pass correct parameters to the wp_nav_menu_item_custom_fields hook, props @helgatheviking.

0.4.0

  • Support WordPress 4.7, props rahulnever2far.

0.3.0

  • Use wp_nav_menu_item_custom_fields as walker hook. See this blog post.
  • Update example plugin

0.2.1

  • Update compatibility info

0.2.0

  • Improve walker class loader

0.1.1

  • Move custom fields up (before <p.field-move />)

0.1.0

  • Initial public release


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

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

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.


 

Click here to cancel reply.

Click here to cancel reply.


*

*


Please copy the string GYhWtD to the field below:

Home | Sitemap | Contact
Network Skin Theme for BioShip by WordQuest
Password Reset
Please enter your e-mail address. You will receive a new password via e-mail.