learndash_process_user_course_progress_update( int $user_id, array $user_progress = array() )
Process user course progress changes.
(int) (Required) User ID to update.
(array) (Optional) User progress array.
Default value: array()
(array) Array of processed course IDs. The user_progress structure should be as the following: The top-level nodes are 'course' and 'quiz'. Within each of these there is an array of course IDs. Within the course array there is an array of course steps. array( [course] => array (  => array( [completed] => 0 [total] => 6 [lessons] => array(  => 1  => 1 ) [topics] => array (  => array (  => 1  => 1 ) ) ) ) [quiz] => array (  => array (  => 1  => 1 ) ) )