Browse: Home / Classes / LearnDash_ProPanel_Activity /

LearnDash_ProPanel_Activity::learndash_data_reports_headers

LearnDash_ProPanel_Activity::learndash_data_reports_headers( $data_headers,  $data_slug )

Override the LearnDash core reporting column headers.


Description #


Parameters #

$data_headers

(Required) array of headers. See notes below for exact structure

$data_slug

(Required) string for the type of report 'user-courses' or 'user-quizzes'


Return #

($data_headers) array The follow is an example of the data structure used for the headers. Note this is NOT a simple key/value array. $data_headers['user_id'] = array( 'label' => 'user_id', 'default' => '', 'display' => array( $this, 'report_header_user_id' ) ); 'label' This is used in place of the array item key for the column header value. 'default' This is the default value of the field 'display' This should be a callback function to handle the value determination


Source #

File: includes/reports/includes/class-ld-propanel-activity.php