LLMS_Query_Quiz_Attempt::get_default_args()

Retrieve default arguments for a student query.


Return Return

(array)


Top ↑

Source Source

File: includes/class.llms.query.quiz.attempt.php

	protected function get_default_args() {

		$args = array(
			'student_id'     => array(),
			'quiz_id'        => array(),
			'sort'           => array(
				'start_date' => 'DESC',
				'attempt'    => 'DESC',
				'id'         => 'ASC',
			),
			'status'         => array(),
			'status_exclude' => array(),
			'attempt'        => null,
			'exclude'        => array(),
			'can_be_resumed' => null,
			'search'         => '',
		);

		$args = wp_parse_args( $args, parent::get_default_args() );

		return apply_filters( $this->get_filter( 'default_args' ), $args );
	}


Top ↑

Changelog Changelog

Changelog
Version Description
7.8.0 Added can_be_resumed default arg.
4.2.0 Added exclude default arg.
3.16.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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