bbp_load_theme_functions()

Attempt to load a custom Forums functions file, similar to each themes functions.php file.

Description

Source

File: bp-forums/core/template-loader.php

function bbp_load_theme_functions() {
	global $pagenow;

	// If Forums is being deactivated, do not load any more files
	if ( bbp_is_deactivation() )
		return;

	if ( ! defined( 'WP_INSTALLING' ) || ( !empty( $pagenow ) && ( 'wp-activate.php' !== $pagenow ) ) ) {
		bbp_locate_template( 'bbpress-functions.php', true );
	}
}

Changelog

Changelog
Version Description
bbPress (r3732) 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.