WordPress at a glance
function is not described

Walker_Category::start_lvl() public WP 2.1.0

Starts the list before the elements are added.

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

No Hooks.

Return

null. Nothing.

Usage

$Walker_Category = new Walker_Category();
$Walker_Category->start_lvl( $output, $depth, $args );
$output(string) (required)
Used to append additional content. Passed by reference.
$depth(int)
Depth of category. Used for tab indentation.
$args(array)
An array of arguments. Will only append content if style argument value is 'list'. See wp_list_categories().
Default: empty array

Notes

  • See: Walker::start_lvl()

Changelog

Since 2.1.0 Introduced.

Code of Walker_Category::start_lvl() WP 5.7.2

<?php
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";
}