BBP_Walker_Reply::start_lvl( string $output = '', int $depth, array $args = array() )

Description

See also

Parameters

$output

(string) (Optional) Passed by reference. Used to append additional content

Default value: ''

$depth

(int) (Required) Depth of reply

$args

(array) (Optional) Uses 'style' argument for type of HTML list

Default value: array()

Source

File: bp-forums/common/classes.php

	public function start_lvl( &$output = '', $depth = 0, $args = array() ) {
		bbpress()->reply_query->reply_depth = $depth + 1;

		switch ( $args['style'] ) {
			case 'div':
				break;
			case 'ol':
				echo "<ol class='bbp-threaded-replies'>\n";
				break;
			case 'ul':
			default:
				echo "<ul class='bbp-threaded-replies'>\n";
				break;
		}
	}

Changelog

Changelog
Version Description
bbPress (r4944) Introduced.

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.