bbp_get_theme_compat_id()

Gets the name of the Forums compatable theme used, in the event the currently active WordPress theme does not explicitly support Forums.

Description

This can be filtered or set manually. Tricky theme authors can override the default and include their own Forums compatibility layers for their themes.

Return

(string)

Source

File: bp-forums/core/theme-compat.php

function bbp_get_theme_compat_id() {
	return apply_filters( 'bbp_get_theme_compat_id', bbpress()->theme_compat->theme->id );
}

Changelog

Changelog
Version Description
bbPress (r3506) 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.