bp_set_theme_compat_templates( array $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.

Parameters

$templates

(array) (Optional) The template stack.

Default value: array()

Return

(array) The template stack (value of $templates).

Source

File: bp-core/bp-core-theme-compatibility.php

function bp_set_theme_compat_templates( $templates = array() ) {
	buddypress()->theme_compat->templates = $templates;

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

Changelog

Changelog
Version Description
BuddyPress 1.7.0 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.