LLMS_Student::get_membership_levels()
Retrieve an array of Membership Levels for a user
Return Return
(array)
Source Source
File: includes/models/model.llms.student.php
/** * Get the students last completed lesson in a course * * @param int $course_id WP_Post ID of the course * @return int WP_Post ID of the lesson or false if no progress has been made * @since 3.0.0 * @version 3.0.0 */ public function get_last_completed_lesson( $course_id ) { $course = new LLMS_Course( $course_id ); $lessons = array_reverse( $course->get_lessons( 'ids' ) );
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
2.2.3 | Introduced. |