nav_menu_submenu_css_class

最后更新于:2021-11-27 09:05:04

apply_filters( ‘nav_menu_submenu_css_class’, string[] $classes, stdClass $args, int $depth )

Filters the CSS class(es) applied to a menu list element.

参数

$classes

(string[])
Array of the CSS classes that are applied to the menu <ul> element.

$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