bp_set_theme_compat_original_template( string $template = '' )
Set the theme compat original_template global.
Description Description
Stash the original template file for the current query. Useful for checking if BuddyPress was able to find a more appropriate template.
Parameters Parameters
- $template
-
(Optional) The template originally selected by WP.
Default value: ''
Return Return
(string) The template originally selected by WP (value of $template).
Source 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 Changelog
Version | Description |
---|---|
1.7.0 | Introduced. |