WordPress at Your Fingertips
function is not described

WC_Product_Cat_List_Walker::end_lvl() public WC 2.1.0

Ends the list of after the elements are added.

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

No Hooks.

Return

null. Nothing.

Usage

$WC_Product_Cat_List_Walker = new WC_Product_Cat_List_Walker();
$WC_Product_Cat_List_Walker->end_lvl( $output, $depth, $args );
$output(string) (required) (passed by reference — &)
Passed by reference. Used to append additional content.
$depth(int)
Depth of category. Used for tab indentation.
$args(array)
Will only append content if style argument value is 'list'.
Default: array()

Notes

Changelog

Since 2.1.0 Introduced.

Code of WC_Product_Cat_List_Walker::end_lvl() WC 5.9.0

public function end_lvl( &$output, $depth = 0, $args = array() ) {
	if ( 'list' !== $args['style'] ) {
		return;
	}

	$indent  = str_repeat( "\t", $depth );
	$output .= "$indent</ul>\n";
}