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