BP_Invitation_Manager::request_exists( $args = array() )

Check whether a request exists matching the passed arguments.

Description

See also

Return

(int|bool) ID of existing request or false if none found.

Source

File: bp-core/classes/class-bp-invitation-manager.php

	public function request_exists( $args = array() ) {
		$has_request = false;

		$args['fields'] = 'ids';
		$requests = $this->get_requests( $args );
		if ( $requests ) {
			$has_request = current( $requests );
		}
		return $has_request;
	}

Changelog

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.