bp_is_single_item()

Are we looking at a single item? (group, user, etc).

Description

Return

(bool) True if looking at a single item, otherwise false.

Source

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

function bp_is_single_item() {
	$bp     = buddypress();
	$retval = false;

	if ( isset( $bp->is_single_item ) ) {
		$retval = $bp->is_single_item;
	}

	/**
	 * Filters whether or not an item is the a single item. (group, user, etc)
	 *
	 * @since BuddyPress 2.1.0
	 *
	 * @param bool $retval Whether or not an item is a single item.
	 */
	return (bool) apply_filters( 'bp_is_single_item', $retval );
}

Changelog

Changelog
Version Description
BuddyPress 1.1.0 Introduced.