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


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

Default value: array()

Top ↑

Return Return


Top ↑

Source Source

File: includes/processors/class.llms.processor.course.data.php

	protected function get_task_data( $data = array() ) {
		return wp_parse_args(
				'students' => 0,
				'progress' => 0,
				'quizzes'  => 0,
				'grade'    => 0,

Top ↑

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.