BP_Core_Gdpr

Class BP_Core_Gdpr

Description

Source

File: bp-core/gdpr/class-bp-core-gdpr.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
54
55
56
57
58
59
class BP_Core_Gdpr {
 
    public function __construct() {
        $this->load_on_bp_dependency();
    }
 
    /**
     * Function to load all the dependencies of GDPR classes.
     *
     * @since BuddyBoss 1.0.0
     */
    function load_on_bp_dependency() {
 
        if ( bp_is_active( "xprofile" ) ) {
            BP_Xprofile_Export::instance();
        }
        if ( bp_is_active( "activity" ) ) {
            BP_Activity_Export::instance();
        }
        if ( bp_is_active( "notifications" ) ) {
            BP_Notification_Export::instance();
        }
        if ( bp_is_active( "messages" ) ) {
            BP_Message_Export::instance();
        }
        if ( bp_is_active( "groups" ) ) {
            BP_Group_Export::instance();
            BP_Group_Membership_Export::instance();
        }
        if ( bp_is_active( 'friends' ) ) {
            BP_Friendship_Export::instance();
        }
        if ( bp_is_active( "settings" ) ) {
            BP_Settings_Export::instance();
        }
        if ( bp_is_active( "forums" ) ) {
            new BP_Bbp_Gdpr_Forums();
            new BP_Bbp_Gdpr_Replies();
            new BP_Bbp_Gdpr_Topics();
        }
 
    }
}

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.