LLMS_Admin_Menus::reporting_page_init()
Output the HTML for the reporting screens
Return Return
(void)
Source Source
File: includes/admin/class.llms.admin.menus.php
public function reporting_page_init() {
if ( isset( $_GET['student_id'] ) && ! llms_current_user_can( 'view_lifterlms_reports', llms_filter_input( INPUT_GET, 'student_id', FILTER_SANITIZE_NUMBER_INT ) ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Recommended
wp_die( esc_html__( 'You do not have permission to access this content.', 'lifterlms' ) );
}
$reporting = new LLMS_Admin_Reporting();
$reporting->output();
}
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 4.7.0 | Removed inclusion of LLMS_Admin_Reporting which is now loaded automatically. |
| 3.35.0 | Sanitize input data. |
| 3.2.0 | |
| 3.13.0 | Introduced. |