nav_menu_item_id

最后更新于:2021-11-27 08:52:05

apply_filters( ‘nav_menu_item_id’, string $menu_id, GC_Post $item, stdClass $args, int $depth )

Filters the ID applied to a menu item’s list item element.

参数

$menu_id

(string)
The ID that is applied to the menu item’s <li> element.

$item

(GC_Post)
The current menu item.

$args

(stdClass)
An object of gc_nav_menu() arguments.

$depth

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

源文件

文件: gc-includes/class-walker-nav-menu.php

View on Trac