On this page
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
File: wp-admin/includes/class-walker-nav-menu-edit.php. View all references
do_action( 'wp_nav_menu_item_custom_fields', $item_id, $menu_item, $depth, $args, $current_object_id );
Related
Used By
| Used By | Description |
|---|---|
| Walker_Nav_Menu_Edit::start_el() wp-admin/includes/class-walker-nav-menu-edit.php | Start the element output. |
Changelog
| Version | Description |
|---|---|
| 5.4.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_nav_menu_item_custom_fields