bp_do_theme_compat()

Are we currently replacing the_content?

Description

Return

(bool) True if the_content is currently in the process of being filtered and replaced.

Source

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

function bp_do_theme_compat() {
	return (bool) ( ! bp_is_template_included() && in_the_loop() && bp_is_theme_compat_active() );
}

Changelog

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