BP_Invitation_Manager::invitation_exists( $args = array() )
Check whether an invitation exists matching the passed arguments.
Description
See also
- BP_Invitation::get(): for a description of accepted parameters.
Return
(int|bool) ID of first found invitation or false if none found.
Source
File: bp-core/classes/class-bp-invitation-manager.php
public function invitation_exists( $args = array() ) { $is_invited = false; $args['fields'] = 'ids'; $invites = $this->get_invitations( $args ); if ( $invites ) { $is_invited = current( $invites ); } return $is_invited; }
Changelog
Version | Description |
---|---|
BuddyBoss 1.3.5 | 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.