QuizzesReportsGenerator::columns()
Returns the columns and their settings
Description
Source
File: bp-integrations/learndash/buddypress/generators/QuizzesReportsGenerator.php
protected function columns() { return [ 'user_id' => $this->column('user_id'), 'user' => $this->column('user'), 'course_id' => $this->column('course_id'), 'course' => $this->column('course'), 'quiz' => [ 'label' => __( 'Quiz', 'buddyboss' ), 'sortable' => true, 'order_key' => 'post_title', ], 'completion_date' => $this->column('completion_date'), 'updated_date' => $this->column('updated_date'), 'score' => [ 'label' => __( 'Score', 'buddyboss' ), 'sortable' => true, 'order_key' => 'activity_score', ], 'time_spent' => $this->column('time_spent'), 'quiz_points' => [ 'label' => __( 'Points Earned', 'buddyboss' ), 'sortable' => true, 'order_key' => 'activity_points', ], 'attempts' => [ 'label' => __( 'Attempts', 'buddyboss' ), 'sortable' => false, 'order_key' => 'post_title', ], ]; }
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.