If you want to call a hook when a Quiz is completed in LearnDash using WordPress than you can do it in the following way.
You can adjust the priority of the function as per your need.
add_action("learndash_quiz_completed", function($data) {
//Called when quiz is completed
}, 5, 1);
You can adjust the priority of the function as per your need.
No comments:
Post a Comment