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'
Return Return
(array) Array of WP_Post IDs (lesson post types).
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(); } }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
4.14.0 | Introduced. |