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

	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.