WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )
apply_filters( "hook_name", "what_to_filter" )
.Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
Line | Code |
---|---|
136 |
|
137 | <?php |
138 | /** |
139 | * Fires at the end of the form field template for nav menu items in the customizer. |
140 | * |
141 | * Additional fields can be rendered here and managed in JavaScript. |
142 | * |
143 | * @since 5.4.0 |
144 | */ |
145 | do_action( 'wp_nav_menu_item_custom_fields_customize_template' ); |
146 | ?> |
147 |
|
148 | <div class="menu-item-actions description-thin submitbox"> |
149 | <# if ( ( 'post_type' === data.item_type || 'taxonomy' === data.item_type ) && '' !== data.original_title ) { #> |
150 | <p class="link-to-original"> |
151 | <?php |
152 | /* translators: Nav menu item original title. %s: Original title. */ |
153 | printf( __( 'Original: %s' ), '<a class="original-link" href="{{ data.url }}">{{ data.original_title }}</a>' ); |
154 | ?> |