bp_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-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 BuddyPress 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
Version | Description |
---|---|
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.