BP_REST_Group_Membership_Request_Endpoint::fetch_single_membership_request( int $request_id )

Helper function to fetch a single group invite.

Parameters Parameters


(int) (Required) The ID of the request you wish to fetch.

Top ↑

Return Return

(BP_Invitation|bool) $group_request Membership request if found, false otherwise.

Source Source

File: bp-groups/classes/class-bp-rest-group-membership-request-endpoint.php

	public function fetch_single_membership_request( $request_id = 0 ) {
		$group_requests = groups_get_requests( array( 'id' => $request_id ) );
		if ( $group_requests ) {
			return current( $group_requests );
		} else {
			return false;

Top ↑

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.