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()
Return Return
(array) Possible subfolders to look in.
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 );
}
Changelog Changelog
| Version | Description |
|---|---|
| 1.7.0 | Introduced. |