bp_template_include( string $template = '' )
Fire ‘bp_template_include’, main filter used for theme compatibility and displaying custom BP theme files.
Description Description
Hooked to ‘template_include’.
Parameters Parameters
- $template
-
(Optional) See 'template_include'.
Default value: ''
Return Return
(string) Template file to use.
Source Source
File: bp-core/bp-core-dependency.php
function bp_template_include( $template = '' ) { /** * Filters the template to use with template_include. * * @since 1.6.0 * * @param string $template The path of the template to include. */ return apply_filters( 'bp_template_include', $template ); }
Changelog Changelog
Version | Description |
---|---|
1.6.0 | Introduced. |