Make WordPress Core

Changeset 47350


Ignore:
Timestamp:
02/24/2020 02:56:42 PM (4 years ago)
Author:
SergeyBiryukov
Message:

Menus: Introduce wp_nav_menu_item_custom_fields_customize_template action that fires at the end of the form field template for nav menu items in the customizer.

This brings parity with the wp_nav_menu_item_custom_fields action added in [47190] for the Menus screen.

Props celloexpressions.
Fixes #47056.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/customize/class-wp-customize-nav-menu-item-control.php

    r45932 r47350  
    133133            </p>
    134134
     135            <?php
     136            /**
     137             * Fires at the end of the form field template for nav menu items in the customizer.
     138             *
     139             * Additional fields can be rendered here and managed in JavaScript.
     140             *
     141             * @since 5.4.0
     142             */
     143            do_action( 'wp_nav_menu_item_custom_fields_customize_template' );
     144            ?>
     145
    135146            <div class="menu-item-actions description-thin submitbox">
    136147                <# if ( ( 'post_type' === data.item_type || 'taxonomy' === data.item_type ) && '' !== data.original_title ) { #>
Note: See TracChangeset for help on using the changeset viewer.