groups_get_invite_count_for_user( int $user_id )

Get the total group invite count for a user.


Parameters Parameters

$user_id

(int) (Required) The user ID.


Top ↑

Return Return

(int)


Source Source

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

function groups_get_invite_count_for_user( $user_id = 0 ) {
	if ( empty( $user_id ) ) {
		$user_id = bp_loggedin_user_id();
	}

	$invites = groups_get_invites_for_user( $user_id );
	return $invites['total'];
}


Top ↑

Changelog Changelog

Changelog
Version Description
2.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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