groups_get_membership_requested_user_ids( $group_id )

Get an array of group IDs to which a user has requested membership.


Parameters Parameters

$user_id

(int) (Required) The user ID.


Top ↑

Return Return

(array) Array of group IDs.


Source Source

File: bp-groups/bp-groups-functions.php

 function groups_get_membership_requested_user_ids( $group_id = 0 ) {
	if ( ! $group_id ) {
		$group_id = bp_get_current_group_id();
	}

	$requests = groups_get_requests( array(
		'item_id' => $group_id,
		'fields'  => 'user_ids'
	) );

	return $requests;
}


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.