bp_is_theme_compat_active()

Is the current page using theme compatibility?

Description

Return

(bool) True if the current page uses theme compatibility.

Source

File: bp-core/bp-core-theme-compatibility.php

function bp_is_theme_compat_active() {
	$bp = buddypress();

	if ( empty( $bp->theme_compat->active ) ) {
		return false;
	}

	return $bp->theme_compat->active;
}

Changelog

Changelog
Version Description
BuddyPress 1.7.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.