groups_get_invite_count_for_user( int $user_id )

Get the total group invite count for a user.


Description Description


Parameters Parameters

$user_id

(Required) The user ID.


Top ↑

Return Return

(int)


Top ↑

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();
	}

	return count( groups_get_invited_to_group_ids( $user_id ) );
}

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.