LLMS_Admin_Reporting::get_current_students()
Get array of student IDs according to current filters.
Return Return
(array)
Source Source
File: includes/admin/reporting/class.llms.admin.reporting.php
public static function get_current_students() { $r = isset( $_GET['student_ids'] ) ? llms_filter_input( INPUT_GET, 'student_ids', FILTER_SANITIZE_NUMBER_INT, FILTER_REQUIRE_ARRAY ) : array(); if ( '' === $r ) { $r = array(); } if ( is_string( $r ) ) { $r = array_map( 'absint', explode( ',', $r ) ); } return $r; }
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.36.3 | Fixed sanitization for input data array. |
3.35.0 | Sanitize input data. |
3.2.0 | Introduced. |