wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



wp_nav_menu_max_depth › WordPress Function

Od3.0.0
Przestarzałyn/a
› wp_nav_menu_max_depth ( $classes )
Parametry:
  • (string) $classes Existing CSS classes for the body tag.
    Wymagane: Tak
Powrót:
  • (string) Modified CSS classes including the menu max depth class.
Zdefiniowane na:
Codex:

Adds a CSS class to display the max depth of the navigation menu.



Źródło

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