LLMS_Admin_Reporting_Tab_Courses::output()
Output tab content
Return Return
(void)
Source Source
File: includes/admin/reporting/tabs/class.llms.admin.reporting.tab.courses.php
94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 | public function output() { // Single course. if ( isset( $_GET [ 'course_id' ] ) ) { if ( ! current_user_can( 'edit_post' , llms_filter_input( INPUT_GET, 'course_id' , FILTER_SANITIZE_NUMBER_INT ) ) ) { wp_die( __( 'You do not have permission to access this content.' , 'lifterlms' ) ); } $tabs = apply_filters( 'llms_reporting_tab_course_tabs' , array ( 'overview' => __( 'Overview' , 'lifterlms' ), 'students' => __( 'Students' , 'lifterlms' ), // phpcs:ignore -- commented out code // 'quizzes' => __( 'Quizzes', 'lifterlms' ), ) ); llms_get_template( 'admin/reporting/tabs/courses/course.php' , array ( 'current_tab' => isset( $_GET [ 'stab' ] ) ? esc_attr( llms_filter_input_sanitize_string( INPUT_GET, 'stab' ) ) : 'overview' , 'tabs' => $tabs , 'course' => llms_get_post( intval ( $_GET [ 'course_id' ] ) ), ) ); } else { $table = new LLMS_Table_Courses(); $table ->get_results(); echo $table ->get_table_html(); } } |
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
5.9.0 | Stop using deprecated FILTER_SANITIZE_STRING . |
3.35.0 | Sanitize input data. |
3.15.0 | Introduced. |