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

Get requests, based on provided filter parameters.

Description

See also

Return

(array) Located invitations.

Source

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

	public function get_requests( $args = array() ) {
		// Set request-specific parameters.
		$args['type']        = 'request';
		$args['inviter_id']  = false;
		$args['invite_sent'] = 'all';

		// Use the class_name property value.
		$args['class'] = $this->class_name;

		return BP_Invitation::get( $args );
	}

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.