PluginProbe
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses / 4.4.9
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses v4.4.9
4.4.9.1 4.4.9 4.4.8 4.4.7 4.4.6 4.4.5 4.4.4 4.4.3 4.4.2 4.4.1 4.4.0 4.3.9.1 4.3.9 4.3.8 4.3.7 4.1.6.9 4.1.6.9.1 4.1.6.9.2 4.1.6.9.3 4.1.6.9.4 4.1.7 4.1.7.1 4.1.7.2 4.1.7.3 4.1.7.3.1 All 141 releases
← All changes | inc/quiz/lp-quiz-functions.php +4 -2 4.1.7 → 4.4.9 View file →
@@ -57,15 +57,17 @@
57 57 * @param int $quiz_id The ID of a quiz to get all questions
58 58 * @param boolean $only_ids return an array of questions with IDs only or as post objects
59 59 *
60 60 * @return array|null
61 + * @deprecated 4.1.7.3
61 62 */
62 63 function learn_press_get_quiz_questions( $quiz_id = null, $only_ids = true ) {
64 + _deprecated_function( __FUNCTION__, '4.1.7.3' );
63 65 if ( ! $quiz_id ) {
64 66 $quiz_id = get_the_ID();
65 67 }
66 68
67 - return ( $quiz = LP_Quiz::get_quiz( $quiz_id ) ) ? $quiz->get_questions() : false;
69 + return ( $quiz = LP_Quiz::get_quiz( $quiz_id ) ) ? $quiz->get_question_ids() : false;
68 70 }
69 71
70 72 /**
71 73 * Check to see if user not passed the ID of quiz try to get it from global
@@ -92,9 +94,9 @@
92 94 * @param int $user_id The ID of user need to check
93 95 * @param int $quiz_id The ID of quiz need to check
94 96 *
95 97 * @return boolean
96 - * @depecated 4.1.6.9
98 + * @deprecated 4.1.6.9
97 99 */
98 100 /*function learn_press_user_has_completed_quiz( $user_id = null, $quiz_id = null ) {
99 101 $user = learn_press_get_user( $user_id );
100 102