bp_messages_star_message_css_class( array $retval = array() )

Add CSS class for the current message depending on starred status.

Parameters Parameters


(array) (Optional) Current CSS classes.

Default value: array()

Top ↑

Return Return


Source Source

File: bp-messages/bp-messages-star.php

function bp_messages_star_message_css_class( $retval = array() ) {
	if ( true === bp_messages_is_message_starred( bp_get_the_thread_message_id() ) ) {
		$status = 'starred';
	} else {
		$status = 'not-starred';

	// Add css class based on star status for the current message.
	$retval[] = "message-{$status}";

	return $retval;

Top ↑

Changelog Changelog

Version Description
2.3.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.