bp_group_has_requested_membership( object|bool $group = false )

Determine whether the logged-in user has requested membership to a group.

Description

Parameters

$group

(Optional) Group object. Default: current group in the loop.

Default value: false

Return

(bool)

Source

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

function bp_group_has_requested_membership( $group = false ) {
	global $groups_template;

	if ( empty( $group ) ) {
		$group =& $groups_template->group;
	}

	if ( groups_check_for_membership_request( bp_loggedin_user_id(), $group->id ) ) {
		return true;
	}

	return false;
}

Changelog

Changelog
Version Description
BuddyPress 1.0.0 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.