Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
LLMS_Controller_Lesson_Progression::get_lesson_id_from_form_data( tring $action )
Retrieve a lesson ID from form data for the mark complete / incomplete forms
Description Description
Parameters Parameters
- $action
-
(Required) Form action, either "complete" or "incomplete".
Return Return
(int|null) Returns null
when either required post fields are missing or if the lesson_id is non-numeric, int (lesson id) on success.
Source Source
File: includes/controllers/class.llms.controller.lesson.progression.php
Changelog Changelog
Version | Description |
---|---|
3.29.0 | Introduced. |