bp_group_member_css_class()
Output group member class ‘banned-user’ for banned members.
Description
Source
File: bp-groups/bp-groups-template.php
function bp_group_member_css_class() {
global $members_template;
if ( $members_template->member->is_banned ) {
/**
* Filters the class to add to the HTML if member is banned.
*
* @since BuddyPress 1.2.6
*
* @param string $value HTML class to add.
*/
echo apply_filters( 'bp_group_member_css_class', 'banned-user' );
}
}
Changelog
| Version | Description |
|---|---|
| BuddyPress 1.2.6 | 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.