Title: Customization Question
Last modified: August 21, 2016

---

# Customization Question

 *  Resolved [kskerp](https://wordpress.org/support/users/kskerp/)
 * (@kskerp)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/customization-question-2-2/)
 * I have created customization inside the plugin (directly). As mentioned earlier
   this is not ideal. I have read through the codex / API / other tutorials that
   explain working with the API. I cannot grasp how to apply this to my customization.
 * The static function:
    static todo($lesson_id, $student_id) is what I am trying
   to accomplish from inside a course page.
 * Inside the class NamasteLMSCourseModel (found in course-model.php), 2 IF statements
   determine whether $post is the type ‘Namaste_lesson’ or ‘Namaste_course’.
 * If $post has the type ‘Namaste_lesson’ it will show what is required to complete
   the lesson.
 * If $post has the type ‘Namaste_course’ it will show the required lessons as either
   complete or not complete. It will not show what tests/assignments/quizzes are
   needed to be completed in order to complete the lesson.
 * I am able to access the $lesson_IDs from inside the FOREACH loop. This enables
   me to execute the todo function from inside the course page which is what I am
   trying to accomplish.
 * I do not understand how one can use the API to accomplish this. Could someone
   please explain if this is possible using the API? I think code will have to be
   inserted directly into the plugin’s code somewhere to accomplish this..
 * [http://wordpress.org/plugins/namaste-lms/](http://wordpress.org/plugins/namaste-lms/)

The topic ‘Customization Question’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/namaste-lms_b6c7ae.svg)
 * [Namaste! LMS](https://wordpress.org/plugins/namaste-lms/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/namaste-lms/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/namaste-lms/)
 * [Active Topics](https://wordpress.org/support/plugin/namaste-lms/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/namaste-lms/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/namaste-lms/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [kskerp](https://wordpress.org/support/users/kskerp/)
 * Last activity: [12 years, 8 months ago](https://wordpress.org/support/topic/customization-question-2-2/)
 * Status: resolved