bp_get_activity_entry_css_class()

Return the current activity entry item’s CSS class.

Description

Return

(string) The activity entry item's CSS class.

Source

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

4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
function bp_get_activity_entry_css_class() {
    global $activities_template;
 
    $class = '';
 
    if ( bp_is_active( 'media' )  ) {
        // $document_activity = bp_activity_get_meta( bp_get_activity_id(), 'bp_document_activity', true );
        $document_ids = bp_activity_get_meta( bp_get_activity_id(), 'bp_document_ids', true );
        if( ! empty( $document_ids ) ){
            $class .= ' documemt-activity';
        }
    }
 
    /**
     * Filters the determined classes to add to the HTML element.
     *
     * @since BuddyBoss 1.5.0
     *
     * @param string $value Classes to be added to the HTML element.
     */
    return apply_filters( 'bp_get_activity_entry_css_class', $class );
}

Changelog

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