bp_set_theme_compat_template( string $template = '' )
Set the theme compat template global.
Description Description
Stash the template file for the current query. Useful if plugins want to override it, or see what file is being included.
Parameters Parameters
- $template
-
(Optional) The template currently in use.
Default value: ''
Return Return
(string) The template currently in use (value of $template).
Source Source
File: bp-core/bp-core-theme-compatibility.php
function bp_set_theme_compat_template( $template = '' ) { buddypress()->theme_compat->template = $template; return buddypress()->theme_compat->template; }
Changelog Changelog
Version | Description |
---|---|
1.7.0 | Introduced. |