bp_use_theme_compat_with_current_theme()
Should we use theme compat for this theme?
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
(bool) True if the current theme needs theme compatibility.
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 BuddyPress 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
Version | Description |
---|---|
BuddyPress 1.9.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.