WordPress at Your Fingertips
function is not described

wp_nav_menu_max_depth() WP 1.0

No Hooks.

Return

String.

Usage

wp_nav_menu_max_depth( $classes );
$classes(string) (required)
-

Notes

  • Global. Int. $_wp_nav_menu_max_depth

Code of wp_nav_menu_max_depth() WP 5.8.2

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