LLMS_Shortcodes::course_progress( array $atts )
Course Progress Bar Shortcode
Parameters Parameters
- $atts
-
(array) (Required) Associative array of shortcode attributes.
Return Return
(string)
Source Source
File: includes/shortcodes/class.llms.shortcodes.php
*/ public static function course_progress( $atts ) { $course_id = self::get_course_id(); if ( ! $course_id ) { return ''; } if ( ! empty( $atts['check_enrollment'] ) && ! llms_is_user_enrolled( get_current_user_id(), $course_id ) ) { return ''; } $course = new LLMS_Course( $course_id ); $course_progress = $course->get_percent_complete(); return lifterlms_course_progress_bar( $course_progress, false, false, false );
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
unknown | unknown |
3.38.0 | Introduced. |