do_action( 'wp_nav_menu_item_custom_fields', string $item_id, WP_Post $menu_item, int $depth, stdClass|null $args, int $current_object_id )

Fires just before the move buttons of a nav menu item in the menu editor.


Parameters

$item_id

Menu item ID as a numeric string.

$menu_item

Menu item data object.

$depth

Depth of menu item. Used for padding.

$args

An object of menu item arguments.

$current_object_id

Nav menu ID.


Source

File: wp-admin/includes/class-walker-nav-menu-edit.php

View on GitHub


Changelog

Changelog
Version Description
5.4.0 Introduced.