W3cubDocs

/WordPress

do_action( 'wp_nav_menu_item_custom_fields', int $item_id, WP_Post $item, int $depth, stdClass $args, int $id )

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

Parameters

$item_id

(int) Menu item ID.

$item

(WP_Post) Menu item data object.

$depth

(int) Depth of menu item. Used for padding.

$args

(stdClass) An object of menu item arguments.

$id

(int) Nav menu ID.

Source

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

View on Trac

Changelog

Version Description
5.4.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_nav_menu_item_custom_fields