BpGroupReports::prepareComponentOptions()

Arguments to pass into the buddypress group extension class

Description

Source

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

	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.