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.


Top ↑

Parameters Parameters

$data

(array) (Optional) Existing array of day (from a previous task).

Default value: array()


Top ↑

Return Return

(array)


Top ↑

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,
        )
    );
}


Top ↑

Changelog Changelog

Changelog
Version Description
4.21.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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