bp_invites_member_invite_get_invitations_by_invited_email( $email )

Get all the invited records for a member by email.

Description

Parameters

$email

(Required)

Return

(WP_Query)

Source

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

280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
function bp_invites_member_invite_get_invitations_by_invited_email( $email ) {
 
    // If the url takes the form register/?bp-invites=accept-member-invitation&email=username+extra%40gmail.com,
    // urldecode returns a space in place of the +. (This is not typical,
    // but we can catch it.)
    $email = str_replace( ' ', '+', $email );
 
    $args = array(
        'post_type'  => bp_get_invite_post_type(),
        'posts_per_page' => -1,
        'meta_query' => array(
            array(
                'key'     => '_bp_invitee_email',
                'value'   => $email,
                'compare' => '=',
            ),
        ),
    );
 
    $bp_get_invitee_email = new WP_Query( $args );
 
    return $bp_get_invitee_email;
}

Changelog

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