bbp_get_current_template_pack()

Get the current template pack package.


Description Description


Return Return

(BBP_Theme_Compat)


Top ↑

Source Source

File: includes/core/theme-compat.php

function bbp_get_current_template_pack() {
	$bbp = bbpress();

	// Theme was not setup, so fallback to an empty object
	if ( empty( $bbp->theme_compat->theme ) ) {
		$bbp->theme_compat->theme = new BBP_Theme_Compat();
	}

	// Filter & return
	return apply_filters( 'bbp_get_current_template_pack', $bbp->theme_compat->theme );
}

Top ↑

Changelog Changelog

Changelog
Version Description
2.6.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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