bbp_is_template_included()

Is a Forums template being included?

Description

Return

(bool) True if yes, false if no

Source

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

function bbp_is_template_included() {
	return ! empty( bbpress()->theme_compat->bbpress_template );
}

Changelog

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