wp_nav_menu_max_depth

Advertisement

Syntax Syntax

wp_nav_menu_max_depth( string $classes )

Parameters Parameters

$classes

(Required)

Return Return

(string)

Source Source

File: wp-admin/nav-menus.php

function wp_nav_menu_max_depth( $classes ) {
	global $_wp_nav_menu_max_depth;
	return "$classes menu-max-depth-$_wp_nav_menu_max_depth";
}

Advertisement

Advertisement

Leave a Reply