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: ''


Top ↑

Return Return

(string) Template file to use.


Top ↑

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 );
}

Top ↑

Changelog Changelog

Changelog
Version Description
1.6.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.