bp_get_message_css_class()
Generate the CSS class for the current thread.
Description
Return
(string)
Source
File: bp-messages/bp-messages-template.php
function bp_get_message_css_class() { global $messages_template; $class = false; if ( $messages_template->current_thread % 2 == 1 ) { $class .= 'alt'; } /** * Filters the CSS class for the current thread. * * @since BuddyPress 1.2.10 * * @param string $class Class string to be added to the list of classes. */ return apply_filters( 'bp_get_message_css_class', trim( $class ) ); }
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.