WordPress at a glance
function is not described

wp_nav_menu_max_depth() WP 1.0

  • Global. Int. $_wp_nav_menu_max_depth

No Hooks.

Return

String.

Usage

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

Code of wp nav menu max depth: wp-admin/nav-menus.php VER 5.1.1

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