bp_get_activity_comment_css_class()

Return the current activity comment’s CSS class.

Description

Return

(string) The activity comment's CSS class.

Source

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

	function bp_get_activity_comment_css_class() {

		$class = ' comment-item';

		// Fall back on current comment in activity loop.
		$comment_depth = bp_activity_get_comment_depth();

		// Threading is turned on, so check the depth.
		if ( get_option( 'thread_comments' ) ) {
			$class .= (bool) ( $comment_depth > get_option( 'thread_comments_depth' ) ) ? ' detached-comment-item' : '';
		}

		return apply_filters( 'bp_get_activity_comment_css_class',  $class );
	}

Changelog

Changelog
Version Description
BuddyBoss 1.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.