LLMS_Table_Courses::set_columns()

Define the structure of the table


Return Return

(array)


Top ↑

Source Source

File: includes/admin/reporting/tables/llms.table.courses.php

296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
protected function set_columns() {
    return array(
        'id'          => array(
            'exportable' => true,
            'title'      => __( 'ID', 'lifterlms' ),
            'sortable'   => true,
        ),
        'title'       => array(
            'exportable' => true,
            'title'      => __( 'Title', 'lifterlms' ),
            'sortable'   => true,
        ),
        'instructors' => array(
            'exportable' => true,
            'filterable' => current_user_can( 'view_others_lifterlms_reports' ) ? $this->get_instructor_filters() : false,
            'title'      => __( 'Instructors', 'lifterlms' ),
        ),
        'students'    => array(
            'exportable' => true,
            'title'      => __( 'Students', 'lifterlms' ),
        ),
        'progress'    => array(
            'exportable' => true,
            'title'      => __( 'Average Progress', 'lifterlms' ),
            'sortable'   => true,
        ),
        'grade'       => array(
            'exportable' => true,
            'title'      => __( 'Average Grade', 'lifterlms' ),
            'sortable'   => true,
        ),
    );
}


Top ↑

Changelog Changelog

Changelog
Version Description
3.15.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.