This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

BP_Core::load_integrations()

Load integrations files

Description

Source

File: bp-core/classes/class-bp-core.php

	private function load_integrations() {
		$bp = buddypress();

		/**
		 * Filters the included and optional integrations.
		 *
		 * @since BuddyBoss 1.0.0
		 *
		 * @param array $value Array of included and optional integrations.
		 */
		$bp->available_integrations = apply_filters('bp_integrations', array(
			'appboss', 'learndash',
		));

		$integration_dir = $bp->plugin_dir . '/bp-integrations/';

		foreach ($bp->available_integrations as $integration) {
			$file = "{$integration_dir}{$integration}/bp-{$integration}-loader.php";
			if (file_exists($file)) {
				include $file;
			}
		}

		/**
		 * Fires after the loading of individual integrations.
		 *
		 * @since BuddyBoss 1.0.0
		 */
		do_action('bp_core_inetegrations_included');
	}

Changelog

Changelog
Version Description
BuddyBoss 1.0.0 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.