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

Check whether a request exists matching the passed arguments.


Description Description

See also See also


Top ↑

Return Return

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


Top ↑

Source 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;
	}

Top ↑

Changelog Changelog

Changelog
Version Description
5.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.