LLMS_Controller_Lesson_Progression::handle_incomplete_form()
Mark Lesson as incomplete Incomplete Lesson form post Marks lesson as incomplete and returns incompletion message to user
Description Description
Return Return
(void)
Source Source
File: includes/controllers/class.llms.controller.lesson.progression.php
public function handle_incomplete_form() { $lesson_id = $this->get_lesson_id_from_form_data( 'incomplete' ); if ( is_null( $lesson_id ) ) { return; } // Mark incomplete and add a notice on success. if ( llms_mark_incomplete( get_current_user_id(), $lesson_id, 'lesson', 'lesson_' . $lesson_id ) ) { // Translators: %s is the title of the lesson. llms_add_notice( sprintf( __( 'The lesson %s is now marked as incomplete.', 'lifterlms' ), get_the_title( $lesson_id ) ) ); } }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.17.1 | Introduced. |
User Contributed Notes User Contributed Notes
Permalink: