LLMS_Processor_Course_Data::get_task_data( array $data = array() )
Retrieve structured task data array.
Description Description
Ensures the expected required array keys are found on the task array and optionally merges in an existing array of day with the (empty) defaults.
Parameters Parameters
- $data
-
(array) (Optional) Existing array of day (from a previous task).
Default value: array()
Return Return
(array)
Source Source
File: includes/processors/class.llms.processor.course.data.php
205 206 207 208 209 210 211 212 213 214 215 | protected function get_task_data( $data = array () ) { return wp_parse_args( $data , array ( 'students' => 0, 'progress' => 0, 'quizzes' => 0, 'grade' => 0, ) ); } |
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
4.21.0 | Introduced. |