WordPress plugin intelligence profile

WP Menu Custom Fields

This plugin adds custom fields on menu item's edit interface of wp-admin.

WP PlugIndex snapshot

Current directory snapshot

Tested up to WordPress 6.7
Current version1.1
WordPress coverageTested up to WordPress 6.7
Minimum stackWP 5.4 · PHP 7.0
Directory statusactive
Last directory update15 Nov 20241y ago
Active installations600Adoption metric — not a quality score
WordPress.org rating5.0 / 5 from 1 ratings
Official packageDirect from WordPress.org

Repository metrics are context, not quality scores. Active installations measure adoption and can strongly reflect a plugin’s age and historical popularity. Ratings, recent updates and “Tested up to” metadata also do not guarantee modern code, error-free operation, security, feature completeness or suitability for a particular site. Why active installs don’t tell the whole story →

WP PlugIndex currently records WP Menu Custom Fields version 1.1 as active, updated 1y ago and tested up to WordPress 6.7.

Overview

About this plugin

This plugin adds custom fields on the menu item’s edit interface of wp-admin and supports only 1-level menu configuration.

Below is the list of custom fields this plugin adds.

  • Custom text
  • Image selection with link and caption
  • Shortcode with caption
  • Custom HTML with TinyMCE editor

Notes:

  • This plugin works with default themes. In order to use it with custom themes, please add the necessary styling in your theme/child theme to override the plugin’s CSS.
  • The custom fields from this plugin should be used in the submenu for well-structured and responsive UI.
  • Currently, this plugin is not supported with FSE themes.

Usage

  • After installing and activating this plugin, goto Appearance -> Menus of your WordPress admin. Create a menu if you haven’t already and add menu items according to your need.
  • When you expand any menu item, you’ll see the custom fields added here (see screenshots below). You can see Custom Field and Select Feature options.
  • Along with Custom Text field, you can choose to use either Image, Shortcode or Custom HTML feature for a particular menu item.
  • You can click on the option you want to use and the input fields of that option will be visible.

Using Custom Text field

  • You can enter any text here and it’ll be displayed with this menu item.
  • This field can be used by all menu items along with any other feature.

Using Image

  • By clicking on Select Image button, WordPress’ media gallery window will be opened up. You can choose 1 image from already uploaded images or you can upload a new one and select that.
  • The selected image will be shown below Select Image button after you select and close the media gallery window.
  • To remove already selected image, click on Select Image button and deselect the already selected image. You can change the selected image by selecting any other image.
  • You can enter a URL in Image Link text field. On front-end, clicking on the image will lead to this URL.
  • You can enter a caption text in Image Caption field and it’ll be displayed below the image on the front-end.

Using Shortcode

  • You can add a shortcode in Shortcode field. We’ve added some stylings to handle WordPress’ default [video] and [audio] shortcode.
  • You can enter a caption text in Shortcode Caption field and it’ll be displayed below the shortcode on the front-end.

Using Custom HTML

  • TinyMCE editor is used to add custom HTML here.
  • From the Visual tab, you can enter text and format it using tools given in toolbar.
  • You can switch to Text tab to see/change HTML code of the text you entered.

Hooks

wp_menu_custom_fields_image_html Filter

  • Allows to change HTML generated for image feature.
  • There are 3 parameters. $html (Generated HTML), $data (Custom fields data), $item_id (Menu item ID).

-

Example:

jpg )

wp_menu_custom_fields_shortcode_html Filter

  • Allows to change HTML generated for shortcode feature.
  • Parameters are same as wp_menu_custom_fields_image_html.

-

Example:

mp4"] [shortcode-caption] => This is a shortcode caption )

wp_menu_custom_fields_custom_markup_html Filter

  • Allows to change HTML generated for custom HTML feature.
  • Parameters are same as wp_menu_custom_fields_image_html.

-

Example:

[selected-feature] => html [html] => Array ( [custom-html] => <em><strong>This is custom HTML</strong></em> )

wp_menu_custom_fields_custom_text_html Filter

  • Allows to change HTML generated for custom text field.
  • Parameters are same as wp_menu_custom_fields_image_html.

-

Example:

[custom-text] => This is a custom text

wp_menu_custom_fields_fields_html Filter

  • Allows to change the final custom field’s HTML generated for a particular menu item.
  • Parameters are same as wp_menu_custom_fields_image_html.

-

Example:

jpg )

)

Styling mega menu

A theme developer can add stylings for the custom fields added by this plugin by referring to the below sample HTML code.

-

Image & Custom text

-

Sample HTML code

jpg"> </a> <span class="rt-wp-menu-custom-fields-image-caption">This is an image caption</span> </div> <span class="rt-wp-menu-custom-fields-custom-text">This is a custom text</span> </div>

-

If Image Link is entered, then img tag will be wrapped inside a.

  • Custom text will be displayed below the feature’s HTML.

-

Shortcode

</span> </div>

-

Custom HTML

<div class="rt-wp-menu-custom-fields-custom-html">Welcome to <strong>WordPress</strong>. This is your first post. </div>

Important Links

  • GitHub – Please mention your wordpress.org username when sending pull requests.

License

Same GPL that WordPress uses!

See room for improvement?

Great! There are several ways you can get involved to help make this plugin better:

  • Report Bugs: If you find a bug, error or other problem, please report it! You can do this by creating a new topic in the issue tracker.
  • Suggest New Features: Have an awesome idea? Please share it! Simply create a new topic in the issure tracker to express your thoughts on why the feature should be included and get a discussion going around your idea.
WordPress.org metadata

Plugin tags

Topics listed for this plugin in the WordPress.org directory.

  • navigation menu
  • navigation menu custom fields
Compatibility & maintenance

Compatibility & maintenance

Tested up to WordPress 6.7

Not yet marked as tested with WordPress 7.1. WordPress.org currently lists Tested up to 6.7.

Current WordPress releaseWordPress 7.1
WordPress.org Tested up to6.7
Minimum requirementsWordPress 5.4 · PHP 7.0
Update activity15 Nov 20241y ago

“Tested up to” is directory metadata supplied by the plugin author. WP PlugIndex does not turn an older declaration into a claim that the plugin is incompatible.

Changes recorded by WP PlugIndex

Recent tracked changes

No tracked version or compatibility changes have been recorded by WP PlugIndex yet.

Tracking & source

WP PlugIndex tracks public WordPress.org directory metadata and records selected version, compatibility and availability changes as they are detected.

Plugin watchlist

Watch this plugin

Sign in to your WP PlugIndex account or create a free account. Free accounts can watch up to 5 plugins and see what changed.

Watch limit

Watchlist limit reached

You have reached your current active watch limit.