Action sensei_user_course_end runs twice on page refresh
-
After a course is completed, I hook into the sensei_user_course_end action that displays a course completion message.
my code basically looks like:
function check_courses_completion( $user_id, $course_id ){
echo “congratulations…”
}add_action( ‘sensei_user_course_end’,’check_courses_completion’, 10, 2 );
The initial display shows the message only once but if I refresh the page, it will show the same message a second time.
Any idea why?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Action sensei_user_course_end runs twice on page refresh’ is closed to new replies.