BP_Friends_Component::includes( array $includes = array() )

Include bp-friends files.


Description Description

See also See also


Top ↑

Parameters Parameters

$includes

(array) (Optional) See BP_Component::includes().

Default value: array()


Top ↑

Source Source

File: bp-friends/classes/class-bp-friends-component.php

	public function includes( $includes = array() ) {
		$includes = array(
			'cache',
			'filters',
			'template',
			'functions',
			'widgets',
		);

		// Conditional includes.
		if ( bp_is_active( 'activity' ) ) {
			$includes[] = 'activity';
		}
		if ( bp_is_active( 'notifications' ) ) {
			$includes[] = 'notifications';
		}

		parent::includes( $includes );
	}


Top ↑

Changelog Changelog

Changelog
Version Description
1.5.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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