How to Add a Trigger for Completing a Lesson Topic
-
Hi,
After installing the Learndash Add-on, I noticed that there’s no trigger that will allow users to receive a badge for completing a Learndash Lesson Topic. I figured that this may be because the Lesson Topic feature was added fairly recently.
I’m in the process of adding the trigger now using the code provided by LearnDash:
add_action(“learndash_topic_completed”, function($data) { //Called when topic is completed. }, 5, 1);
I took a look at the plugin files for this BadgeOS LearnDash Add-on, and I do see where to add the trigger in the step-ui.php file, but I don’t see where the code that actually hooks into this funtion is located.
I went through the Developer documentation, and once I can get a full understanding of which files/functions need to be modified, I know I can get this done. Can you point me in the right direction on this one?
- The topic ‘How to Add a Trigger for Completing a Lesson Topic’ is closed to new replies.