BP_Members_Component::includes( array $includes = array() )

Include bp-members 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-members/classes/class-bp-members-component.php

	public function includes( $includes = array() ) {

		// Always include these files.
		$includes = array(
			'filters',
			'template',
			'adminbar',
			'functions',
			'blocks',
			'widgets',
			'cache',
			'invitations',
			'notifications',
		);

		if ( bp_is_active( 'activity' ) ) {
			$includes[] = 'activity';
		}

		// Include these only if in admin.
		if ( is_admin() ) {
			$includes[] = 'admin';
		}

		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.