• Resolved kskerp

    (@kskerp)


    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://ww.wp.xz.cn/plugins/namaste-lms/

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