If you want to call a hook when a Topic 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_topic_completed", function($data) {
//Called when topic is completed
}, 5, 1);
You can adjust the priority of the function as per your need.
No comments:
Post a Comment