LLMS_Course::get_percent_complete( $user_id = '' )
Get a user’s percentage completion through the course
Return Return
(float)
Source Source
File: includes/models/model.llms.course.php
public function get_percent_complete( $user_id = '' ) { $student = llms_get_student( $user_id ); if ( ! $student ) { return 0; } return $student->get_progress( $this->get( 'id' ), 'course' ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.17.2 | Unknown. |
1.0.0 | Introduced. |