bbp_is_query_name( $name = '' )

Check the passed parameter against the current _bbp_query_name

Description

Return

(bool) True if match, false if not

Source

File: bp-forums/common/template.php

function bbp_is_query_name( $name = '' )  {
	return (bool) ( bbp_get_query_name() === $name );
}

Changelog

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