Uma área de pesquisa sobre o WordPress para devs e autores do tema



nav_menu_submenu_css_class ›

Desde4.8.0
Obsoleton/a
apply_filters( 'nav_menu_submenu_css_class', $classes, $args, $depth )
Parâmetros: (3)
  • (string[]) $classes Array of the CSS classes that are applied to the menu `<ul>` element.
    Required: Yes
  • (stdClass) $args An object of `wp_nav_menu()` arguments.
    Required: Yes
  • (int) $depth Depth of menu item. Used for padding.
    Required: Yes
Definido em:
Codex:

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





Fonte

$class_names = join( ' ', apply_filters( 'nav_menu_submenu_css_class', $classes, $args, $depth ) );