learndash_mark_complete( WP_Post $post, array $atts = array() )
Outputs the HTML output to mark a course complete.
Must meet requirements of course to mark the course as complete.
(WP_Post) (Required) The
WP_Postlesson or topic object.
(array) (Optional) An array of attributes to mark course complete.
Default value: array()
(string) HTML output to mark course complete
|includes/ld-assignment-uploads.php: learndash_lesson_hasassignments ()||
Utility function to check whether a lesson has an assignment.
|includes/course/ld-course-progress.php: learndash_is_previous_complete ()||
Checks if the previous topic or lesson is complete.
|includes/classes/class-ldlms-model-user-course-progress.php: learndash_user_progress_get_previous_incomplete_step ()||
Utility function to get the previous incomplete course step for user.
|includes/ld-misc-functions.php: learndash_min_asset ()||
Utility function to load minified version of CSS/JS assets.
|includes/course/ld-course-functions.php: learndash_can_user_bypass ()||
Check if user can bypass action ($context).
|includes/course/ld-course-functions.php: learndash_is_course_prerequities_completed ()||
Checks if the user’s course prerequisites are completed for a given course.
|includes/ld-misc-functions.php: learndash_convert_lesson_time_time ()||
Converts the stored lesson timer value from the postmeta settings into number of total seconds.
|includes/settings/settings-functions.php: learndash_get_setting ()||
Gets the LearnDash setting for a post.
|includes/class-ld-custom-label.php: LearnDash_Custom_Label::get_label ()||
Get label based on key name
|includes/class-ld-lms.php: SFWD_LMS::get_template ()||
Get LearnDash template and pass data to be used in template
|includes/ld-groups.php: learndash_is_admin_user ()||
Checks if a user has the admin capabilities.
Filter to override previous step completed.
|includes/settings/class-ld-settings-sections.php: LearnDash_Settings_Section::get_section_setting ()||
Static function to get a Section Setting value.
|includes/course/ld-course-steps-functions.php: learndash_course_get_single_parent_step ()||
Gets the single parent step ID for a given step ID in a course.
|includes/course/ld-course-functions.php: learndash_check_user_course_points_access ()||
Checks if a user can access course points.
|includes/course/ld-course-functions.php: learndash_get_course_id ()||
Gets the course ID for a resource.
|includes/course/ld-course-user-functions.php: sfwd_lms_has_access ()||
Checks whether a user has access to a course.
|includes/course/ld-course-progress.php: learndash_show_mark_incomplete ()||
Outputs HTML output to mark a step incomplete.
|includes/course/ld-course-progress.php: learndash_forced_lesson_time ()||
Gets the lesson time for a lesson if it exists.
|includes/course/ld-course-progress.php: learndash_forced_lesson_time_cookie_key ()||
Gets the lesson time cookie key for lesson/topic.
|includes/course/ld-course-progress.php: learndash_lesson_progression_enabled ()||
Checks whether the lesson progression is enabled or not.
|includes/course/ld-course-progress.php: learndash_get_course_progress ()||
Gets the user’s current course progress.
|includes/course/ld-course-progress.php: learndash_lesson_topics_completed ()||
Checks if the lesson topics are completed.
Filters attributes for mark a course complete form.
Filters form fields to mark a course complete.
Filters HTML output to mark a course completion.
Used By #
|themes/ld30/includes/helpers.php: learndash_30_focus_mode_can_complete ()||
Checks whether a post can be marked as complete or not in focus mode.