bp_is_group_document()

Is the current page a group’s document page?

Description

Return

(bool) True if the current page is a group's document page.

Source

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

function bp_is_group_document() {
	$retval = false;

	if ( bp_is_active( 'media' ) && function_exists( 'bp_is_group_document_support_enabled') && ! bp_is_group_document_support_enabled() ) {
		return $retval;
	}

	if ( bp_is_single_item() && bp_is_groups_component() && bp_is_current_action( 'documents' ) ) {
		$retval = true;
	}

	return $retval;
}

Changelog

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