BpGroupReports::prepareComponentOptions()

Arguments to pass into the buddypress group extension class

Description

Source

File: bp-integrations/learndash/buddypress/components/BpGroupReports.php

72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
protected function prepareComponentOptions()
{
    $tabName     = apply_filters('bp_ld_sync/reports_group_tab_name', __('Reports', 'buddyboss'));
    $tabSlug     = apply_filters('bp_ld_sync/reports_group_tab_slug', 'reports');
    $tabPosition = apply_filters('bp_ld_sync/reports_group_tab_position', 15);
 
    return [
        'name' => $tabName,
        'slug' => $tabSlug,
        'nav_item_position' => $tabPosition,
        'access' => apply_filters('bp_ld_sync/reports_group_tab_enabled', $this->showTabOnView()),
 
        'screens' => [
            'create' => [
                'enabled' => false,
            ],
            'edit' => [
                'enabled' => false,
            ],
            'admin'  => [
                'enabled' => false,
            ],
        ]
    ];
}

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.