bp_group_has_requested_membership( object|bool $group = false )

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

Parameters Parameters


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

Default value: false

Top ↑

Return Return


Source 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;

Top ↑

Changelog Changelog

Version Description
1.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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