bp_get_template_locations( array $templates = array() )

Get the possible subdirectories to check for templates in.


Description Description


Parameters Parameters

$templates

(Optional) Templates we are looking for.

Default value: array()


Top ↑

Return Return

(array) Possible subfolders to look in.


Top ↑

Source Source

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

function bp_get_template_locations( $templates = array() ) {
	$locations = array(
		'buddypress',
		'community',
		''
	);

	/**
	 * Filters the possible subdirectories to check for templates in.
	 *
	 * @since 1.7.0
	 *
	 * @param array $locations Array of subfolders to look in.
	 * @param array $templates Array of templates we are looking for.
	 */
	return apply_filters( 'bp_get_template_locations', $locations, $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.