bp_get_theme_compat_templates()

Get the templates to use as the endpoint for BuddyPress template parts.

Description

Return

(string) Possible root level wrapper template files.

Source

File: bp-core/bp-core-template-loader.php

function bp_get_theme_compat_templates() {
	return bp_get_query_template( 'buddypress', array(
		'plugin-buddypress.php',
		'buddypress.php',
		'community.php',
		'generic.php',
		'page.php',
		'single.php',
		'singular.php',
		'index.php'
	) );
}

Changelog

Changelog
Version Description
BuddyPress 2.4.0 Added singular.php to stack BuddyPress 2.4.0 Added singular.php to stack
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.