bp_is_template_included()
Is a BuddyPress template being included?
Description Description
Return Return
(bool) True if yes, false if no.
Source Source
File: bp-core/bp-core-template-loader.php
function bp_is_template_included() {
return isset( buddypress()->theme_compat->found_template ) && buddypress()->theme_compat->found_template;
}
Changelog Changelog
| Version | Description |
|---|---|
| 1.8.0 | Introduced. |