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: ''


Top ↑

Return Return

(object) The feature settings.


Top ↑

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 ];
}

Top ↑

Changelog Changelog

Changelog
Version Description
2.4.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.