bbp_set_theme_compat_template( $template = '' )

Set the theme compat template global

Description

Stash the template file for the current query. Useful if plugins want to override it, or see what file is being included.

Source

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

function bbp_set_theme_compat_template( $template = '' ) {
	bbpress()->theme_compat->template = $template;

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

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.