Warning: Array to string conversion in /home/customer/www/docs.automatorplugin.com/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 825
Warning: foreach() argument must be of type array|object, string given in /home/customer/www/docs.automatorplugin.com/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 830
Warning: Array to string conversion in /home/customer/www/docs.automatorplugin.com/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 825
Warning: foreach() argument must be of type array|object, string given in /home/customer/www/docs.automatorplugin.com/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 830
LD_MARKCOURSEDONE::mark_steps_done( $user_id, $course_id )
Warning: Array to string conversion in /home/customer/www/docs.automatorplugin.com/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 825
Warning: foreach() argument must be of type array|object, string given in /home/customer/www/docs.automatorplugin.com/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 830
Warning: Array to string conversion in /home/customer/www/docs.automatorplugin.com/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 825
Warning: foreach() argument must be of type array|object, string given in /home/customer/www/docs.automatorplugin.com/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 830
Parameters Parameters
- $user_id
(Required)
- $course_id
(Required)
Source Source
File: src/integrations/learndash/actions/ld-markcoursedone.php
public function mark_steps_done( $user_id, $course_id ) { $lessons = learndash_get_lesson_list( $course_id, array( 'num' => 0 ) ); foreach ( $lessons as $lesson ) { $this->mark_topics_done( $user_id, $lesson->ID, $course_id ); $lesson_quiz_list = learndash_get_lesson_quiz_list( $lesson->ID, $user_id, $course_id ); if ( $lesson_quiz_list ) { foreach ( $lesson_quiz_list as $ql ) { $this->quiz_list[ $ql['post']->ID ] = 0; } } learndash_process_mark_complete( $user_id, $lesson->ID, false, $course_id ); } $this->mark_quiz_complete( $user_id, $course_id ); }
Expand full source code Collapse full source code View on Github