bp_group_member_css_class()

Output group member class ‘banned-user’ for banned members.

Description

Source

File: bp-groups/bp-groups-template.php

5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
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

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.