Does the current page belong to a single group?

Description Description

Will return true for any subpage of a single group.

Top ↑

Return Return

(bool) True if the current page is part of a single group.

Source Source

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

function bp_is_group() {
	$retval = bp_is_active( 'groups' );

	if ( ! empty( $retval ) ) {
		$retval = bp_is_groups_component() && groups_get_current_group();

	return (bool) $retval;

Top ↑

Changelog Changelog

Version Description
1.2.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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