bp_get_theme_compat_feature( string $feature = '' )
Get a theme compat feature
Description Description
Parameters Parameters
- $feature
-
(Optional) The feature (eg: cover_image).
Default value: ''
Return Return
(object) The feature settings.
Source Source
File: bp-core/bp-core-theme-compatibility.php
function bp_get_theme_compat_feature( $feature = '' ) {
// Get current theme compat theme.
$theme_compat_theme = buddypress()->theme_compat->theme;
// Get features.
$features = $theme_compat_theme->__get( 'features' );
if ( ! isset( $features[ $feature ] ) ) {
return false;
}
return $features[ $feature ];
}
Changelog Changelog
| Version | Description |
|---|---|
| 2.4.0 | Introduced. |