WordPress at a glance
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_2060', 10, 3 );
function filter_function_name_2060( $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.

Where the hook is called

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

Where the hook is used (in WP core)

Использование не найдено.