bp_set_theme_compat_original_template( string $template = '' )

Set the theme compat original_template global.


Description Description

Stash the original template file for the current query. Useful for checking if BuddyPress was able to find a more appropriate template.


Parameters Parameters

$template

(Optional) The template originally selected by WP.

Default value: ''


Top ↑

Return Return

(string) The template originally selected by WP (value of $template).


Top ↑

Source Source

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

function bp_set_theme_compat_original_template( $template = '' ) {
	buddypress()->theme_compat->original_template = $template;

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

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.