bbp_is_theme_compat_original_template( $template = '' )

Is a template the original_template global


Description Description

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


Source Source

File: includes/core/theme-compat.php

function bbp_is_theme_compat_original_template( $template = '' ) {
	$bbp = bbpress();

	// Bail if no original template
	if ( empty( $bbp->theme_compat->original_template ) ) {
		return false;
	}

	return (bool) ( $bbp->theme_compat->original_template === $template );
}

Top ↑

Changelog Changelog

Changelog
Version Description
2.1.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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