when complete course button is clicked and course is evaluated. i want to redirect the user to another page.
i wrote this code but it is not working.
add_action(‘wplms_evaluate_course’,’redirect_to_feedback_form_now’,999,2);
function redirect_to_feedback_form_now($course_id,$user_id){ if(!empty($course_id) && !empty($user_id)){ wp_redirect(‘https://abc.com/feedback-form/'); exit(); } }
it is redirecting but course is not marked complete.
note: course is in automatic evaluation mode.
This reply has been marked as private.
Ok, the best way would be show the completion message to the user and in that completion message show the button for the feedback.
--
IS this an upload type course ?
The issue you faced is because the mark completion was placed right after this hook. I have now placed this hook at the end of the completion, so now it will work fine after the update.
wplms_plugin/create-course/upload.course.php line number 88 was shifted to line number 161
This reply has been marked as private.
Well redirect currently is not possible , you can add a button in course completion field in course settings clicking on it user will be redirected.
This reply has been marked as private.
Forms addons will be released soon in order to add forms in the single page anywhere .
I said " CURRENTLY NOT POSSIBLE "
We will have to add provision to redirect first .
This reply has been marked as private.