Action hook 'wp_nav_menu_item_custom_fields'

in WP Core File wp-admin/includes/class-walker-nav-menu-edit.php at line 253

Description

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

Occurrences

Filename Line Number
wp-admin/includes/class-walker-nav-menu-edit.php 253

Parameters

Type Name Description
string $item_id Menu item ID as a numeric string.
WP_Post $menu_item Menu item data object.
int $depth Depth of menu item. Used for padding.
stdClass|null $args An object of menu item arguments.
int $current_object_id Nav menu ID.

PHP Doc

/**
				 * Fires just before the move buttons of a nav menu item in the menu editor.
				 *
				 * @since 5.4.0
				 *
				 * @param string        $item_id           Menu item ID as a numeric string.
				 * @param WP_Post       $menu_item         Menu item data object.
				 * @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.
				 */