LLMS_Processor_Course_Data::get_student_query_args( int $course_id )
Retrieve arguments used to perform an LLMS_Student_Query for background data processing
Parameters Parameters
- $course_id
-
(int) (Required) WP_Post ID of the course.
Return Return
(array) Array of arguments passed to an LLMS_Student_Query.
Source Source
File: includes/processors/class.llms.processor.course.data.php
protected function get_student_query_args( $course_id ) { /** * Filter the query arguments used when calculating course data * * @since 4.12.0 * * @param array $args Query arguments passed to LLMS_Student_Query. * @param LLMS_Processor_Course_Data $processor Instance of the data processor class. */ return apply_filters( 'llms_data_processor_course_data_student_query_args', array( 'post_id' => $course_id, 'statuses' => array( 'enrolled' ), 'page' => 1, 'per_page' => 100, 'sort' => array( 'id' => 'ASC', ), ), $this ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
4.12.0 | Introduced. |