bp_use_theme_compat_with_current_theme()
Should we use theme compat for this theme?
Description Description
If the current theme’s need for theme compat hasn’t yet been detected, we do so using bp_detect_theme_compat_with_current_theme().
Return Return
(bool) True if the current theme needs theme compatibility.
Source Source
File: bp-core/bp-core-theme-compatibility.php
function bp_use_theme_compat_with_current_theme() {
if ( ! isset( buddypress()->theme_compat->use_with_current_theme ) ) {
bp_detect_theme_compat_with_current_theme();
}
/**
* Filters whether or not to use theme compat for the active theme.
*
* @since 1.9.0
*
* @param bool $use_with_current_theme True if the current theme needs theme compatibility.
*/
return apply_filters( 'bp_use_theme_compat_with_current_theme', buddypress()->theme_compat->use_with_current_theme );
}
Changelog Changelog
| Version | Description |
|---|---|
| 1.9.0 | Introduced. |