bbp_filter_is_single_user( bool $is = false )

Filter the Forums is_single_user function with BuddyBoss equivalent

Description

Parameters

$is

(bool) (Optional) Default false

Default value: false

Return

(bool) True if viewing single user, false if not

Source

File: bp-forums/functions.php

function bbp_filter_is_single_user( $is = false ) {
	if ( !empty( $is ) )
		return $is;

	return bp_is_user();
}

Changelog

Changelog
Version Description
bbPress (r3552) 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.