bp_use_theme_compat_with_current_theme()

Should we use theme compat for this theme?


Description 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 Return

(bool) True if the current theme needs theme compatibility.


Top ↑

Source 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 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 );
}

Top ↑

Changelog Changelog

Changelog
Version Description
1.9.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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