BP_App_Integration

Setup the bp app class.

Description

Source

File: bp-integrations/buddyboss-app/bp-buddyboss-app-integration.php

class BP_App_Integration extends BP_Integration {

	public function __construct() {
		$this->start(
			'buddyboss-app',
			__( 'BuddyBoss App', 'buddyboss' ),
			'buddyboss-app',
			array(
				'required_plugin' => 'buddyboss-app/buddyboss-app.php',
			)
		);
	}

	/**
	 * Register admin setting tab, only if BuddyBoss App 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-buddyboss-app-tab.php';

			new BP_App_Admin_Integration_Tab(
				"bp-{$this->id}",
				$this->name,
				array(
					'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.