Walker_Category::start_lvl()
Starts the list before the elements are added.
Метод класса: Walker_Category{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$Walker_Category = new Walker_Category(); $Walker_Category->start_lvl( $output, $depth, $args );
- $output(строка) (обязательный) (передается по ссылке — &)
- Used to append additional content. Passed by reference.
- $depth(int)
- 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::start_lvl()
Список изменений
С версии 2.1.0 | Введена. |
Код Walker_Category::start_lvl() Walker Category::start lvl WP 6.7.2
public function start_lvl( &$output, $depth = 0, $args = array() ) { if ( 'list' !== $args['style'] ) { return; } $indent = str_repeat( "\t", $depth ); $output .= "$indent<ul class='children'>\n"; }