bbp_set_theme_compat_templates( $templates = array() )

Set the theme compat templates global

Description

Stash possible template files for the current query. Useful if plugins want to override them, or see what files are being scanned for inclusion.

Source

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

function bbp_set_theme_compat_templates( $templates = array() ) {
	bbpress()->theme_compat->templates = $templates;

	return bbpress()->theme_compat->templates;
}

Changelog

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