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. git-svn-id: https://develop.svn.wordpress.org/trunk@47350 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
c2316edc3a
commit
74baee2f19
|
@ -132,6 +132,17 @@ class WP_Customize_Nav_Menu_Item_Control extends WP_Customize_Control {
|
|||
</label>
|
||||
</p>
|
||||
|
||||
<?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
|
||||
*/
|
||||
do_action( 'wp_nav_menu_item_custom_fields_customize_template' );
|
||||
?>
|
||||
|
||||
<div class="menu-item-actions description-thin submitbox">
|
||||
<# if ( ( 'post_type' === data.item_type || 'taxonomy' === data.item_type ) && '' !== data.original_title ) { #>
|
||||
<p class="link-to-original">
|
||||
|
|
Loading…
Reference in New Issue