Reports::getReportFilters()
Get available report filters
Description
Source
File: bp-integrations/learndash/buddypress/Reports.php
protected function getReportFilters()
{
$filters = apply_filters('bp_ld_sync/report_filters', [
'user' => [
'name' => __('User', 'buddyboss'),
'position' => 10,
'options' => $this->getGroupUsersList()
],
'course' => [
'name' => __('Course', 'buddyboss'),
'position' => 20,
'options' => $this->getGroupCoursesList()
],
'step' => [
'name' => __('Step', 'buddyboss'),
'position' => 30,
'options' => $this->getStepTypes()
],
]);
return wp_list_sort($filters, 'position', 'ASC', true);
}
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.