redirect to a specific unit

Home Forums Legacy Support Support queries How-to & Troubleshooting redirect to a specific unit

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #230811
    CREZCO
    Participant
    Hello, After click a quiz retake button is clicked, there is any way to redirect to specific unit? I inderstand the into: function bp_course_student_quiz_retake($args) we could insert a function for that, but how to make it? Thanks Oriol Soler
    #230894
    logan
    Member
    I have already replied on this topic.
    #231186
    CREZCO
    Participant
    This reply has been marked as private.
    #231309
    Anshuman Sahu
    Keymaster
    Ok we will need some details about it . Do you want this on both quizzes single and incourse quizzes ?  
    #231318
    CREZCO
    Participant
    This reply has been marked as private.
    #231559
    Anshuman Sahu
    Keymaster
    Ok we understand it .   You will need these two filters in order to laod your specific unit : add_filter('wplms_get_course_unfinished_unit',load_unit'); add_filter('wplms_get_course_unfinished_unit_key','unit_key',10,3); function load_unit($unit_id){   return $unit_id; } function unit_key($key,$unit_id,$course_id){   return $key; }
    #231560
    Anshuman Sahu
    Keymaster
    where unit id will be the unit you want to load and key will be the key of the unit in course curriculum you want to load .
    #231964
    CREZCO
    Participant
    It's clear. I got my goal, thanks.
    #232020
    logan
    Member
    thanks for confirming, closing this topic.
Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘redirect to a specific unit’ is closed to new replies.