wp_nav_menu_item_custom_fields_customize_template
Action HookDescription
Fires at the end of the form field template for nav menu items in the customizer. Additional fields can be rendered here and managed in JavaScript.Hook Information
| File Location |
wp-includes/customize/class-wp-customize-nav-menu-item-control.php
View on GitHub
|
| Hook Type | Action |
| Line Number | 162 |
Hook Parameters
This hook doesn't accept any parameters.
Usage Examples
Basic Usage
<?php
// Hook into wp_nav_menu_item_custom_fields_customize_template
add_action('wp_nav_menu_item_custom_fields_customize_template', 'my_custom_function');
function my_custom_function() {
// Your custom code here
}
Source Code Context
wp-includes/customize/class-wp-customize-nav-menu-item-control.php:162
- How this hook is used in WordPress core
<?php
157 *
158 * Additional fields can be rendered here and managed in JavaScript.
159 *
160 * @since 5.4.0
161 */
162 do_action( 'wp_nav_menu_item_custom_fields_customize_template' );
163 ?>
164
165 <div class="menu-item-actions description-thin submitbox">
166 <# if ( ( 'post_type' === data.item_type || 'taxonomy' === data.item_type ) && '' !== data.original_title ) { #>
167 <p class="link-to-original">
PHP Documentation
<?php
/**
* Fires at the end of the form field template for nav menu items in the customizer.
*
* Additional fields can be rendered here and managed in JavaScript.
*
* @since 5.4.0
*/
Quick Info
- Hook Type: Action
- Parameters: 0
- File: wp-includes/customize/class-wp-customize-nav-menu-item-control.php
Related Hooks
Related hooks will be displayed here in future updates.