bp_set_theme_compat_templates( array $templates = array() )
Set the theme compat templates global.
Description Description
Stash possible template files for the current query. Useful if plugins want to override them, or see what files are being scanned for inclusion.
Parameters Parameters
- $templates
-
(Optional) The template stack.
Default value: array()
Return Return
(array) The template stack (value of $templates).
Source Source
File: bp-core/bp-core-theme-compatibility.php
function bp_set_theme_compat_templates( $templates = array() ) { buddypress()->theme_compat->templates = $templates; return buddypress()->theme_compat->templates; }
Changelog Changelog
Version | Description |
---|---|
1.7.0 | Introduced. |