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

(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 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

This site uses Akismet to reduce spam. Learn how your comment data is processed.