Walker_Category::end_lvl() public WP 2.1.0
Ends the list of after the elements are added.
{} Это метод класса: Walker_Category{}
Хуков нет.
Возвращает
null
. Null. Ничего.
Использование
$Walker_Category = new Walker_Category(); $Walker_Category->end_lvl( $output, $depth, $args );
- $output(строка) (обязательный)
- Used to append additional content. Passed by reference.
- $depth(число)
- Depth of category. Used for tab indentation.
- $args(массив)
- An array of arguments. Will only append content if style argument value is 'list'. See wp_list_categories().
По умолчанию: empty array
Заметки
- Смотрите: Walker::end_lvl()
Список изменений
С версии 2.1.0 | Введена. |
Код Walker_Category::end_lvl() Walker Category::end lvl WP 5.7
public function end_lvl( &$output, $depth = 0, $args = array() ) {
if ( 'list' !== $args['style'] ) {
return;
}
$indent = str_repeat( "\t", $depth );
$output .= "$indent</ul>\n";
}