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

2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
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.