BP_Appboss_Integration

Setup the bp appboss class.

Description

Source

File: bp-integrations/appboss/bp-appboss-integration.php

class BP_Appboss_Integration extends BP_Integration {

	public function __construct() {
		$this->start(
			'appboss',
			__('AppBoss', 'buddyboss'),
			'appboss',
			[
				'required_plugin' => 'appboss/appboss.php',
			]
		);
	}

	/**
	 * Register admin setting tab, only if AppBoss plugin is disabled
	 *
	 * @since BuddyBoss 1.0.0
	 */
	public function setup_admin_integration_tab() {
		
		if (!is_plugin_active($this->required_plugin)) {

			require_once trailingslashit($this->path) . 'bp-admin-appboss-tab.php';

			new BP_Appboss_Admin_Integration_Tab(
				"bp-{$this->id}",
				$this->name,
				[
					'root_path' => $this->path,
					'root_url' => $this->url,
					'required_plugin' => $this->required_plugin,
				]
			);

		}
	}
}

Changelog

Changelog
Version Description
BuddyBoss 1.0.0 Introduced.

Methods

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.