BP_Nouveau_Group_Invite_Query::build_meta_query( $bp_user_query )

Description

Source

File: bp-templates/bp-nouveau/includes/groups/classes.php

132
133
134
135
136
137
138
139
140
141
142
143
144
145
public function build_meta_query( BP_User_Query $bp_user_query ) {
    if ( isset( $this->query_vars['scope'] ) && 'members' === $this->query_vars['scope'] && isset( $this->query_vars['meta_query'] ) ) {
 
        $invites_meta_query = new WP_Meta_Query( $this->query_vars['meta_query'] );
        $meta_sql           = $invites_meta_query->get_sql( 'user', 'u', 'ID' );
 
        if ( empty( $meta_sql['join'] ) || empty( $meta_sql['where'] ) ) {
            return;
        }
 
        $bp_user_query->uid_clauses['select'] .= ' ' . $meta_sql['join'];
        $bp_user_query->uid_clauses['where']  .= ' ' . $meta_sql['where'];
    }
}

Changelog

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