Created
May 8, 2018 12:30
-
-
Save robertuniqid/ed4d2cad4475ff16bd729a4090588913 to your computer and use it in GitHub Desktop.
WPEP Redirect Student to Current Lesson from a course.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"> | |
jQuery(document).ready(function() { | |
setTimeout( function() { | |
window.location = '<?php echo wpep_course_lesson_permalink( wpep_controller()->userActivity->get_delivered_course_lesson_id( $course_id, get_current_user_id() ), $course_id ); ?>'; | |
}, 3000 ); | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment