WordPress at a glance
функция не описана

Walker_Nav_Menu::end_lvl() public WP 3.0.0

Ends the list of after the elements are added.

It's a method of the class: Walker_Nav_Menu{}

Хуков нет.

Возвращает

Null. Ничего.

Использование

$Walker_Nav_Menu = new Walker_Nav_Menu();
$Walker_Nav_Menu->end_lvl( $output, $depth, $args );
$output(string) (required) (passed by reference — &)
Used to append additional content (passed by reference).
$depth(int)
Depth of menu item. Used for padding.
Default: 0
$args(stdClass)
An object of wp_nav_menu() arguments.
Default: null

Заметки

  • See: Walker::end_lvl()

Changelog

Since 3.0.0 Introduced.

Код Walker_Nav_Menu::end_lvl() WP 5.5.1

<?php
public function end_lvl( &$output, $depth = 0, $args = null ) {
	if ( isset( $args->item_spacing ) && 'discard' === $args->item_spacing ) {
		$t = '';
		$n = '';
	} else {
		$t = "\t";
		$n = "\n";
	}
	$indent  = str_repeat( $t, $depth );
	$output .= "$indent</ul>{$n}";
}