bp_template_include( string $template = '' )

Fire ‘bp_template_include’, main filter used for theme compatibility and displaying custom BP theme files.

Description

Hooked to ‘template_include’.

Parameters

$template

(Optional) See 'template_include'.

Default value: ''

Return

(string) Template file to use.

Source

File: bp-core/bp-core-dependency.php

function bp_template_include( $template = '' ) {

	/**
	 * Filters the template to use with template_include.
	 *
	 * @since BuddyPress 1.6.0
	 *
	 * @param string $template The path of the template to include.
	 */
	return apply_filters( 'bp_template_include', $template );
}

Changelog

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