nav_menu_submenu_css_class

nav_menu_submenu_css_class

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7

apply_filters('nav_menu_submenu_css_class') is found 1 times:

  • /wp-includes/class-walker-nav-menu.php line 75
    		 * @param string[] $classes Array of the CSS classes that are applied to the menu `<ul>` element.
    		 * @param stdClass $args    An object of `wp_nav_menu()` arguments.
    		 * @param int      $depth   Depth of menu item. Used for padding.
    		 */
    		$class_names = implode( ' ', apply_filters( 'nav_menu_submenu_css_class', $classes, $args, $depth ) );
    
    		$atts          = array();
    		$atts['class'] = ! empty( $class_names ) ? $class_names : '';
    
    		/**
    		 * Filters the HTML attributes applied to a menu list element.