bp_get_message_css_class()
Generate the CSS class for the current thread.
Description Description
Return Return
(string)
Source 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 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 ) ); }