bbp_get_theme_compat_dir()

Gets the Forums compatable theme used in the event the currently active WordPress theme does not explicitly support Forums. This can be filtered, or set manually. Tricky theme authors can override the default and include their own Forums compatibility layers for their themes.

Description

Return

(string)

Source

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

function bbp_get_theme_compat_dir() {
	return apply_filters( 'bbp_get_theme_compat_dir', bbpress()->theme_compat->theme->dir );
}

Changelog

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