Quantcast
Channel: Topic Tag: action | WordPress.org
Viewing all articles
Browse latest Browse all 897

takinglife2themax on "[Plugin: BadgeOS LearnDash Add-on] How to Add a Trigger for Completing a Lesson Topic"

$
0
0

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?

https://wordpress.org/plugins/badgeos-learndash-add-on/


Viewing all articles
Browse latest Browse all 897

Trending Articles