bp_member_object_template_results_members_all_scope( $querystring,  $object )

Object template results members all scope.

Description

Source

File: bp-members/bp-members-functions.php

666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
function bp_member_object_template_results_members_all_scope( $querystring, $object ) {
    if ( 'members' !== $object ) {
        return $querystring;
    }
 
    $querystring = wp_parse_args( $querystring );
 
    if ( bp_is_active( 'activity' ) && bp_is_activity_follow_active() && isset( $querystring['scope'] ) && 'following' === $querystring['scope'] ) {
        $counts = bp_total_follow_counts();
        if ( ! empty( $counts['following'] ) ) {
            unset( $querystring['include'] );
        }
    }
 
    $querystring['scope']    = 'all';
    $querystring['page']     = 1;
    $querystring['per_page'] = '1';
    $querystring['user_id']  = 0;
    return http_build_query( $querystring );
}

Changelog

Changelog
Version Description
BuddyBoss 1.2.10 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.