{"id":27918,"date":"2014-02-20T20:27:28","date_gmt":"2014-02-20T20:27:28","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/menu-item-custom-fields\/"},"modified":"2017-02-11T05:51:54","modified_gmt":"2017-02-11T05:51:54","slug":"menu-item-custom-fields","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/menu-item-custom-fields\/","author":13853779,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0.0","stable_tag":"1.0.0","tested":"4.7.33","requires":"3.8","requires_php":"","requires_plugins":"","header_name":"Menu Item Custom Fields","header_author":"Dzikri Aziz","header_description":"","assets_banners_color":"","last_updated":"2017-02-11 05:51:54","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/www.paypal.me\/kucrut","header_plugin_uri":"https:\/\/github.com\/kucrut\/wp-menu-item-custom-fields","header_author_uri":"https:\/\/kucrut.org\/","rating":4.5,"author_block_rating":0,"active_installs":400,"downloads":11992,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":"1","2":0,"3":"1","4":"1","5":"10"},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.1.0","0.1.1","0.2.0","0.2.1","0.3.0","0.4.0","1.0.0"],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[2010,1865,2994,2867],"plugin_category":[43],"plugin_contributors":[78133],"plugin_business_model":[],"class_list":["post-27918","plugin","type-plugin","status-closed","hentry","plugin_tags-custom-fields","plugin_tags-menu","plugin_tags-metadata","plugin_tags-nav-menu","plugin_category-customization","plugin_contributors-kucrut","plugin_committers-themeisle"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/menu-item-custom-fields.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<h4>Breaking Change<\/h4>\n\n<p>Since version <code>1.0.0<\/code>, the first parameter passed to the <code>wp_nav_menu_item_custom_fields<\/code> 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 <code>0<\/code> (not used by core).<\/p>\n\n<p>This is a <em>library<\/em> 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 <em>easily<\/em>. See <strong>Installation<\/strong>.<\/p>\n\n<p>Development of this plugin is done on <a href=\"https:\/\/github.com\/kucrut\/wp-menu-item-custom-fields\">GitHub<\/a>. <strong>Pull requests welcome<\/strong>. Please see <a href=\"https:\/\/github.com\/kucrut\/wp-menu-item-custom-fields\/issues\">issues reported<\/a> there before going to the plugin forum.<\/p>\n\n<!--section=installation-->\n<h4>As regular plugin<\/h4>\n\n<ol>\n<li>Upload <code>menu-item-custom-fields<\/code> to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<\/ol>\n\n<h4>As library in your plugin\/theme<\/h4>\n\n<p>Simply copy <code>menu-item-custom-fields<\/code> to your plugin directory and require the main plugin file, eg:<\/p>\n\n<pre><code>require_once dirname( __FILE__ ) . '\/menu-item-custom-fields\/menu-item-custom-fields.php';\n<\/code><\/pre>\n\n<h4>Usage<\/h4>\n\n<p>Copy (and customize) and include the <code>menu-item-custom-fields-example.php<\/code> file found in the <code>doc\/<\/code> directory of this plugin into your plugin\/theme.<\/p>\n\n<!--section=changelog-->\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Pass correct parameters to the <code>wp_nav_menu_item_custom_fields<\/code> hook, props <a href=\"https:\/\/github.com\/helgatheviking\">@helgatheviking<\/a>.<\/li>\n<\/ul>\n\n<h4>0.4.0<\/h4>\n\n<ul>\n<li>Support WordPress 4.7, props <a href=\"https:\/\/github.com\/rahulnever2far\">rahulnever2far<\/a>.<\/li>\n<\/ul>\n\n<h4>0.3.0<\/h4>\n\n<ul>\n<li>Use <code>wp_nav_menu_item_custom_fields<\/code> as walker hook. See this <a href=\"http:\/\/shazdeh.me\/2014\/06\/25\/custom-fields-nav-menu-items\/\">blog post<\/a>.<\/li>\n<li>Update example plugin<\/li>\n<\/ul>\n\n<h4>0.2.1<\/h4>\n\n<ul>\n<li>Update compatibility info<\/li>\n<\/ul>\n\n<h4>0.2.0<\/h4>\n\n<ul>\n<li>Improve walker class loader<\/li>\n<\/ul>\n\n<h4>0.1.1<\/h4>\n\n<ul>\n<li>Move custom fields up (before <code>&lt;p.field-move \/&gt;<\/code>)<\/li>\n<\/ul>\n\n<h4>0.1.0<\/h4>\n\n<ul>\n<li>Initial public release<\/li>\n<\/ul>","raw_excerpt":"Easily add custom fields to nav menu items.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/27918","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=27918"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/themeisle"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=27918"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=27918"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=27918"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=27918"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=27918"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=27918"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}