wp_nav_menu_item_custom_fields

wp_nav_menu_item_custom_fields

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.5.2

do_action('wp_nav_menu_item_custom_fields') is found 1 times:

  • /wp-admin/includes/class-walker-nav-menu-edit.php line 253
    				 * @param int           $depth             Depth of menu item. Used for padding.
    				 * @param stdClass|null $args              An object of menu item arguments.
    				 * @param int           $current_object_id Nav menu ID.
    				 */
    				do_action( 'wp_nav_menu_item_custom_fields', $item_id, $menu_item, $depth, $args, $current_object_id );
    				?>
    
    				<fieldset class="field-move hide-if-no-js description description-wide">
    					<span class="field-move-visual-label" aria-hidden="true"><?php _e( 'Move' ); ?></span>
    					<button type="button" class="button-link menus-move menus-move-up" data-dir="up"><?php _e( 'Up one' ); ?></button>
    					<button type="button" class="button-link menus-move menus-move-down" data-dir="down"><?php _e( 'Down one' ); ?></button>
    

See this hook used in plugins: