bp_is_group_members()

Is the current page a group’s Members page?

Description

Eg http://example.com/groups/mygroup/members/.

Return

(bool) True if the current page is part of a group's Members page.

Source

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

3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
function bp_is_group_members() {
    $retval = false;
 
    if ( bp_is_single_item() && bp_is_groups_component() && bp_is_current_action( 'members' ) ) {
        $retval = true;
    }
 
    if ( bp_is_group_home() && ! bp_is_active( 'activity' ) && ! bp_is_group_custom_front() ) {
        $retval = true;
    }
 
    return $retval;
}

Changelog

Changelog
Version Description
BuddyPress 1.1.0 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.