bp_activity_comment_depth( object|int $comment )

Output the depth of the current activity comment.

Description

Parameters

$comment

(Required) Object of the activity comment or activity comment ID. Usually unnecessary when used in activity comment loop.

Source

File: bp-activity/bp-activity-template.php

function bp_activity_comment_depth( $comment = 0 ) {
	echo bp_activity_get_comment_depth( $comment );
}

Changelog

Changelog
Version Description
BuddyPress 2.8.0 Added $comment as a parameter. BuddyPress 2.8.0 Added $comment as a parameter.
BuddyPress 2.0.0 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.