wp_nav_menu_item_custom_fields_customize_template WordPress Action Hook

The wp_nav_menu_item_custom_fields_customize_template hook allows custom fields to be added to the menu item customization screen in the WordPress admin area. This hook is useful for adding custom data to menu items, such as specifying a CSS class or link target.

do_action( 'wp_nav_menu_item_custom_fields_customize_template' ) #

Fires at the end of the form field template for nav menu items in the customizer.


Description

Additional fields can be rendered here and managed in JavaScript.


Top ↑

Source

File: wp-includes/customize/class-wp-customize-nav-menu-item-control.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
5.4.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.