{"id":257406,"date":"2025-11-08T17:19:19","date_gmt":"2025-11-08T17:19:19","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/menu-item-custom-attributes\/"},"modified":"2025-11-08T17:36:59","modified_gmt":"2025-11-08T17:36:59","slug":"menu-item-custom-attributes","status":"publish","type":"plugin","link":"https:\/\/twd.wordpress.org\/plugins\/menu-item-custom-attributes\/","author":15242575,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.2","stable_tag":"1.2","tested":"6.8.5","requires":"5.0","requires_php":"7.2","requires_plugins":null,"header_name":"Menu Item Custom Attributes","header_author":"Ponsiva Pandian","header_description":"Adds custom ID, Class, and Data attributes to WordPress menu items directly from the admin panel.","assets_banners_color":"e4e4e4","last_updated":"2025-11-08 17:36:59","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/wordpress.org\/plugins\/menu-item-custom-attributes","header_author_uri":"http:\/\/iamponsiva.rf.gd","rating":0,"author_block_rating":0,"active_installs":30,"downloads":246,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.1":{"tag":"1.1","author":"ponsiva","date":"2025-11-08 17:21:01"},"1.2":{"tag":"1.2","author":"ponsiva","date":"2025-11-08 17:36:59"}},"upgrade_notice":{"1.1":"<p>Security, performance, and compliance improvements. Update recommended for best compatibility.<\/p>","1.2":"<ul>\n<li>Added sanitization improvements and updated uninstall process.<\/li>\n<li>Enhanced compatibility with WordPress 6.8.<\/li>\n<\/ul>"},"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3392211,"resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3392211,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":{"banner-772x250.png":{"filename":"banner-772x250.png","revision":3392211,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.1","1.2"],"block_files":[],"assets_screenshots":[],"screenshots":{"1":"Menu editor showing new fields for ID, Class, and Data attributes.","2":"Example front-end output with custom attributes applied."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[21888,250433,2302,1865,1753],"plugin_category":[43],"plugin_contributors":[248984],"plugin_business_model":[],"class_list":["post-257406","plugin","type-plugin","status-publish","hentry","plugin_tags-css-class","plugin_tags-custom-attributes","plugin_tags-id","plugin_tags-menu","plugin_tags-navigation","plugin_category-customization","plugin_contributors-ponsiva","plugin_committers-ponsiva"],"banners":{"banner":"https:\/\/ps.w.org\/menu-item-custom-attributes\/assets\/banner-772x250.png?rev=3392211","banner_2x":false,"banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/menu-item-custom-attributes\/assets\/icon-128x128.png?rev=3392211","icon_2x":"https:\/\/ps.w.org\/menu-item-custom-attributes\/assets\/icon-256x256.png?rev=3392211","generated":false},"screenshots":[],"raw_content":"<!--section=description-->\n<p><strong>Menu Item Custom Attributes<\/strong> allows you to add HTML attributes such as <code>id<\/code>, <code>class<\/code>, and <code>data-*<\/code> directly to WordPress menu items from the admin interface.<\/p>\n\n<p>This plugin is perfect for developers and designers who want fine-grained control over menu elements for <strong>styling, tracking, or custom scripting<\/strong> \u2014 all without editing theme code.<\/p>\n\n<p><strong>Key Features<\/strong>\n- Add unique HTML <code>ID<\/code>, CSS <code>Class<\/code>, or custom <code>Data<\/code> attributes to individual menu items<br \/>\n- Works directly within the native <strong>Appearance \u2192 Menus<\/strong> screen<br \/>\n- Compatible with <strong>all themes and page builders<\/strong> (Elementor, Astra, Divi, etc.)<br \/>\n- Lightweight and performance-optimized<br \/>\n- Safe and secure with sanitization and nonce checks<\/p>\n\n<p>Use it to apply special styles, attach JavaScript actions, or integrate with analytics tools like Google Tag Manager.<\/p>\n\n<h3>Support<\/h3>\n\n<p>For feature requests, issues, or feedback, please visit the <strong><a href=\"https:\/\/wordpress.org\/support\/plugin\/menu-item-custom-attributes\/\">Support Forum<\/a><\/strong>.<\/p>\n\n<h3>License<\/h3>\n\n<p>This plugin is free software; you can redistribute it and\/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.<\/p>\n\n<h3>Credits<\/h3>\n\n<p>Developed and maintained by <strong>Ponsiva Pandian<\/strong><br \/>\nWebsite: <a href=\"www.iamponsiva.rf.gd\">www.iamponsiva.rf.gd<\/a><\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the plugin files to the <code>\/wp-content\/plugins\/menu-item-custom-attributes\/<\/code> directory, or install it via <strong>Plugins \u2192 Add New<\/strong> in WordPress.<\/li>\n<li>Activate the plugin through the <strong>Plugins<\/strong> menu.<\/li>\n<li>Go to <strong>Appearance \u2192 Menus<\/strong>.<\/li>\n<li>Edit any menu item \u2014 you\u2019ll see new fields to add <strong>Custom ID<\/strong>, <strong>Custom Class<\/strong>, and <strong>Custom Data Attributes<\/strong>.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id='can%20i%20add%20multiple%20css%20classes%3F'><h3>Can I add multiple CSS classes?<\/h3><\/dt>\n<dd><p>Yes, you can add multiple classes separated by spaces, just like HTML.<\/p><\/dd>\n<dt id='can%20i%20use%20this%20for%20tracking%20attributes%20%28like%20data-gtm%29%3F'><h3>Can I use this for tracking attributes (like data-gtm)?<\/h3><\/dt>\n<dd><p>Yes! Enter any valid <code>data-*<\/code> attribute such as <code>data-gtm=\"click\"<\/code> or <code>data-event=\"cta\"<\/code>.<\/p><\/dd>\n<dt id='will%20it%20work%20with%20page%20builders%20like%20elementor%20or%20astra%3F'><h3>Will it work with page builders like Elementor or Astra?<\/h3><\/dt>\n<dd><p>Absolutely. It\u2019s designed to be theme-agnostic and builder-compatible.<\/p><\/dd>\n<dt id='does%20it%20affect%20seo%20or%20page%20speed%3F'><h3>Does it affect SEO or page speed?<\/h3><\/dt>\n<dd><p>No. It only modifies HTML attributes for menu items \u2014 no scripts or extra resources are added.<\/p><\/dd>\n<dt id='can%20i%20safely%20uninstall%20it%3F'><h3>Can I safely uninstall it?<\/h3><\/dt>\n<dd><p>Yes. When uninstalled, it removes all associated custom meta keys from your database.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.1<\/h4>\n\n<ul>\n<li>Added nonce verification and sanitization for plugin check compliance.  <\/li>\n<li>Added uninstall cleanup using <code>delete_post_meta_by_key()<\/code>.  <\/li>\n<li>Improved data attribute parsing and safety.  <\/li>\n<li>Updated code to meet WordPress coding standards.<\/li>\n<\/ul>\n\n<h4>1.0<\/h4>\n\n<ul>\n<li>Initial release \u2014 added custom ID, class, and data attribute fields to menu items.<\/li>\n<\/ul>","raw_excerpt":"Easily add custom ID, Class, and Data attributes to WordPress menu items directly from the admin panel \u2014 no coding required.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/257406","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=257406"}],"author":[{"embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/ponsiva"}],"wp:attachment":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=257406"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=257406"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=257406"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=257406"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=257406"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=257406"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}