BP_App_Integration

Setup the bp app class.

Description

Source

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

17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
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.