wp_nav_menu_item_custom_fields

Advertisement

Summery Summery

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

Syntax Syntax

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

Parameters Parameters

$item_id

Menu item ID.

$item

Menu item data object.

$depth

Depth of menu item. Used for padding.

$args

An object of menu item arguments.

$id

Nav menu ID.

Source Source

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

Advertisement

Changelog Changelog

Changelog
Version Description
5.4.0 Introduced.

Advertisement

Leave a Reply