Title: How to mark complete COURSE programmatically
Last modified: July 14, 2021

---

# How to mark complete COURSE programmatically

 *  Resolved [patelparthavi](https://wordpress.org/support/users/patelparthavi/)
 * (@patelparthavi)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/how-to-mark-complete-course-programmatically/)
 * Hello
 * I have Uncanny Toolkit for LearnDash, Uncanny Toolkit Pro for LearnDash , and
   Uncanny LearnDash Groups plugins installed in the project
 * Now I am doing customization in Uncanny LearnDash Groups plugins , which required
   me to “Mark Complete” course programmatically. However , I can not use this :`
   update_user_meta( $selected_user_id, 'course_completed_' . $selected_course_id,
   time(), true );` , because it only completes the course and NOT LESSON/TOPIC/
   QUIZ
 * How do I complete the course and its child like LESSON/TOPIC/QUIZ ? Is there 
   any hook or function ?

Viewing 1 replies (of 1 total)

 *  Plugin Author [Uncanny Owl](https://wordpress.org/support/users/uncannyowl/)
 * (@uncannyowl)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/how-to-mark-complete-course-programmatically/#post-14690027)
 * Hi [@patelparthavi](https://wordpress.org/support/users/patelparthavi/) , sorry
   about the late reply. What you want to do needs to use LearnDash API functions
   to fetch the course and related steps, then to mark those as complete. In this
   forum we’re unfortunately only able to look at Toolkit questions (we’re not associated
   with LearnDash), and this is something LearnDash will be better able to support.
   You should definitely have a look at their developer documentation at [https://developers.learndash.com/](https://developers.learndash.com/).
 * We’re happy to help with any other Uncanny Groups issues, but for those tickets
   it’s better if you can send those on our website. Thanks!

Viewing 1 replies (of 1 total)

The topic ‘How to mark complete COURSE programmatically’ is closed to new replies.

 * ![](https://ps.w.org/uncanny-learndash-toolkit/assets/icon-256x256.jpg?rev=3400711)
 * [Uncanny Toolkit for LearnDash](https://wordpress.org/plugins/uncanny-learndash-toolkit/)
 * [Support Threads](https://wordpress.org/support/plugin/uncanny-learndash-toolkit/)
 * [Active Topics](https://wordpress.org/support/plugin/uncanny-learndash-toolkit/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/uncanny-learndash-toolkit/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/uncanny-learndash-toolkit/reviews/)

## Tags

 * [filter](https://wordpress.org/support/topic-tag/filter/)
 * [hook](https://wordpress.org/support/topic-tag/hook/)

 * 1 reply
 * 2 participants
 * Last reply from: [Uncanny Owl](https://wordpress.org/support/users/uncannyowl/)
 * Last activity: [4 years, 10 months ago](https://wordpress.org/support/topic/how-to-mark-complete-course-programmatically/#post-14690027)
 * Status: resolved