bbp_set_theme_compat_original_template( $template = '' )
Set the theme compat original_template global
Description
Stash the original template file for the current query. Useful for checking if Forums was able to find a more appropriate template.
Source
File: bp-forums/core/theme-compat.php
function bbp_set_theme_compat_original_template( $template = '' ) {
bbpress()->theme_compat->original_template = $template;
return bbpress()->theme_compat->original_template;
}
Changelog
| Version | Description |
|---|---|
| bbPress (r3926) | 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.