WordPress at Your Fingertips
filter is not described

nav_menu_submenu_css_class filter-hook . WP 4.8.0

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


add_filter( 'nav_menu_submenu_css_class', 'filter_function_name_8616', 10, 3 );
function filter_function_name_8616( $classes, $args, $depth ){
	// filter...

	return $classes;
Array of the CSS classes that are applied to the menu <ul> element.
An object of wp_nav_menu() arguments.
Depth of menu item. Used for padding.


Since 4.8.0 Introduced.

Where the hook is called

wp-includes/class-walker-nav-menu.php 75
$class_names = implode( ' ', apply_filters( 'nav_menu_submenu_css_class', $classes, $args, $depth ) );

Where in WP core the hook is used WordPress

Usage not found.