Reports::getGenerators()

Get available report generators

Description

Source

File: bp-integrations/learndash/buddypress/Reports.php

	public function getGenerators()
	{
		return apply_filters('bp_ld_sync/reports_generators', [
			'all' => [
				'name'  => __('All Steps', 'buddyboss'),
				'class' => '\Buddyboss\LearndashIntegration\Buddypress\Generators\AllReportsGenerator'
			],
			learndash_get_post_type_slug('course') => [
				'name'  => __('Courses', 'buddyboss'),
				'class' => 'Buddyboss\LearndashIntegration\Buddypress\Generators\CoursesReportsGenerator'
			],
			learndash_get_post_type_slug('lesson') => [
				'name'  => __('Lessons', 'buddyboss'),
				'class' => 'Buddyboss\LearndashIntegration\Buddypress\Generators\LessonsReportsGenerator'
			],
			learndash_get_post_type_slug('topic') => [
				'name'  => __('Topics', 'buddyboss'),
				'class' => 'Buddyboss\LearndashIntegration\Buddypress\Generators\TopicsReportsGenerator'
			],
			learndash_get_post_type_slug('quiz') => [
				'name'  => __('Quizzes', 'buddyboss'),
				'class' => 'Buddyboss\LearndashIntegration\Buddypress\Generators\QuizzesReportsGenerator'
			],
			learndash_get_post_type_slug('essays') => [
				'name'  => __('Essays', 'buddyboss'),
				'class' => 'Buddyboss\LearndashIntegration\Buddypress\Generators\EssaysReportsGenerator'
			],
			learndash_get_post_type_slug('assignment') => [
				'name'  => __('Assignments', 'buddyboss'),
				'class' => 'Buddyboss\LearndashIntegration\Buddypress\Generators\AssignmentsReportsGenerator'
			],
		]);
	}

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.