bbp_get_template_locations( array $templates = array() )

Get the possible subdirectories to check for templates in

Description

Parameters

$templates

(Optional) Templates we are looking for

Default value: array()

Return

(array) Possible subfolders to look in

Source

File: bp-forums/core/template-functions.php

function bbp_get_template_locations( $templates = array() ) {
	$locations = array(
		'bbpress',
		'forums',
		''
	);
	return apply_filters( 'bbp_get_template_locations', $locations, $templates );
}

Changelog

Changelog
Version Description
bbPress (r3738) 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.