bp_set_theme_compat_original_template( string $template = '' )
Set the theme compat original_template global.
Description
Stash the original template file for the current query. Useful for checking if BuddyPress was able to find a more appropriate template.
Parameters
- $template
-
(Optional) The template originally selected by WP.
Default value: ''
Return
(string) The template originally selected by WP (value of $template).
Source
File: bp-core/bp-core-theme-compatibility.php
function bp_set_theme_compat_original_template( $template = '' ) { buddypress()->theme_compat->original_template = $template; return buddypress()->theme_compat->original_template; }
Changelog
Version | Description |
---|---|
BuddyPress 1.7.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.