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_idstring
Menu item ID as a numeric string.
$menu_itemWP_Post
Menu item data object.
$depthint
Depth of menu item. Used for padding.
$argsstdClass|null
An object of menu item arguments.
$current_object_idint
Nav menu ID.

Source

do_action( 'wp_nav_menu_item_custom_fields', $item_id, $menu_item, $depth, $args, $current_object_id );

Changelog

VersionDescription
5.4.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.