bp_is_single( string $component, string $callback )

Not currently used by BuddyPress.

Description

Parameters

$component

(Required) Current component to check for.

$callback

(Required) Callback to invoke.

Return

(bool)

Source

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

function bp_is_single( $component, $callback ) {
	return (bool) ( bp_is_current_component( $component ) && ( true === call_user_func( $callback ) ) );
}

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.