WordPress Hooks Explorer

Listing all hooks extracted WordPress Core


Details about wp_nav_menu_item_custom_fields

Back to home

Files

Filename Hook Type Line Number PHP Doc
wp-admin/includes/class-walker-nav-menu-edit.php do_action 251 /**
* 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.
*/

Hook Parameters

Parameter 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.