LLMS_Admin_Reporting::get_current_courses()

Get array of course IDs selected according to applied filters.


Return Return

(array)


Top ↑

Source Source

File: includes/admin/reporting/class.llms.admin.reporting.php

45
46
47
48
49
50
51
52
53
54
55
56
public static function get_current_courses() {
 
    $r = isset( $_GET['course_ids'] ) ? llms_filter_input( INPUT_GET, 'course_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;
}


Top ↑

Changelog 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.

Top ↑

User Contributed Notes User Contributed Notes

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