wp_nav_menu_max_depth

Advertisement

Syntax Syntax

wp_nav_menu_max_depth( string $classes )

Parameters Parameters

$classes

(string) (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

This site uses Akismet to reduce spam. Learn how your comment data is processed.