Support » Plugin: LearnPress - WordPress LMS Plugin » Amazing Work. Just Sharing a little tweak for users

  • Thanks Learnpress team in making a wonderful system . thumbs up for your guys effort. I still have many much attraction towards learnpress either way learndash is also a competitor as they focused on more functions but less design and interface// i would suggest you guys to make a profile system better to include all quizzes immediately after a user enroll the course as it is only showed when user view the quiz or attempted it. and please make a quiz system better.

    Question :I have searched and do my every efforts to find a way because your quiz work on post types so it shows url as quizzes/quiz-1/question-1 … question-2/ and so on. so user can easily enter url of the question number and no use of randomize questions addon.. please can you help with this how this can be achieved ?

    Contributing a little tweak to show answer explaination only on when review button is click :
    ////////////////////////Editing learnpress/inc/lp-template-functions.php

    if ( ! function_exists( ‘learn_press_content_item_summary_question_explanation’ ) ) {

    * Render content if quiz question.
    function learn_press_content_item_summary_question_explanation() {
    $quiz = LP_Global::course_item_quiz();
    if ( $question = $quiz->get_viewing_question() ) {
    $course = LP_Global::course();
    $user = LP_Global::user();
    $course_data = $user->get_course_data( $course->get_id() );
    $user_quiz = $course_data->get_item_quiz( $quiz->get_id() );

    if ( ! $question->get_explanation() ) {

    if ( $user_quiz->has_checked_question( $question->get_id() )||(learn_press_is_review_questions() ) ) {
    learn_press_get_template( ‘content-question/explanation.php’, array( ‘question’ => $question ) );


Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Amazing Work. Just Sharing a little tweak for users’ is closed to new replies.