bp_set_theme_compat_templates( array $templates = array() )

Set the theme compat templates global.


Description 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 Parameters

$templates

(Optional) The template stack.

Default value: array()


Top ↑

Return Return

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


Top ↑

Source 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;
}

Top ↑

Changelog Changelog

Changelog
Version Description
1.7.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.