Warning: This method has been deprecated. Method LLMS_Quiz::get_lessons() is deprecated with no replacement instead.

LLMS_Quiz::get_lessons( string $return = 'ids' )

Retrieve lessons this quiz is assigned to.


Parameters Parameters

$return

(string) (Optional) Format of the return [ids|lessons]. Default 'ids'.

Default value: 'ids'


Top ↑

Return Return

(array) Array of WP_Post IDs (lesson post types).


Top ↑

Source Source

File: includes/models/model.llms.quiz.php

	 *
	 * @since 3.3.0
	 *
	 * @return array
	 */
	private function get_questions_raw() {

		$q = get_post_meta( $this->get( 'id' ), $this->meta_prefix . 'questions', true );
		return $q ? $q : array();

	}

}

Top ↑

Changelog Changelog

Changelog
Version Description
4.14.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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