wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



nav_menu_submenu_css_class › WordPress Filter Hooks

Seit4.8.0
Veraltetn/v
apply_filters( 'nav_menu_submenu_css_class', $classes, $args, $depth )
Parameter: (3)
  • (string[]) $classes Array of the CSS classes that are applied to the menu `<ul>` element.
    Erforderlich: Ja
  • (stdClass) $args An object of `wp_nav_menu()` arguments.
    Erforderlich: Ja
  • (int) $depth Depth of menu item. Used for padding.
    Erforderlich: Ja
Definiert in:
Codex:

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





Quellcode

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