bp_is_template_included()

Is a BuddyPress template being included?

Description

Return

(bool) True if yes, false if no.

Source

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

function bp_is_template_included() {
	return ! empty( buddypress()->theme_compat->found_template );
}

Changelog

Changelog
Version Description
BuddyPress 1.8.0 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.