BP_LearnDash_Admin_Integration_Tab::registerReportsSettings()
Register reports related settings
Description
Source
File: bp-integrations/learndash/bp-admin-learndash-tab.php
public function registerReportsSettings() { $this->current_section = 'reports'; /** * Hide the report section from platform */ $this->add_section( 'bp_ld_sync-reports', __('Group Reports Settings', 'buddyboss'), [$this, 'learndash_groups_report_description'] ); $this->add_checkbox_field( 'enabled', __('Group Reports', 'buddyboss'), [ 'input_text' => __('Enable Social Group Report for LearnDash', 'buddyboss'), 'input_run_js' => 'reports_enabled', ] ); $this->add_field( 'access', __('Report Access', 'buddyboss'), [$this, 'output_report_access_setting'], [], [ 'class' => 'js-show-on-reports_enabled', ] ); $this->add_input_field( 'per_page', __('Report Results Per Page', 'buddyboss'), [ 'input_type' => 'number', 'input_description' => __('Number of report results displayed per page', 'buddyboss'), 'class' => 'js-show-on-reports_enabled', ] ); }
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.