LLMS_REST_Enrollments_Controller::handle_status_update( LLMS_Student $student, integer $post_id, string $status, string $trigger )
Handles the enrollment status update.
Parameters Parameters
- $student
-
(LLMS_Student) (Required) Student.
- $post_id
-
(integer) (Required) The post id.
- $status
-
(string) (Required) Status.
- $trigger
-
(string) (Required) The enrollment trigger.
Return Return
(boolean)
Source Source
File: libraries/lifterlms-rest/includes/server/class-llms-rest-enrollments-controller.php
* Filters the enrollment's links. * * @since 1.0.0-beta.10 * * @param array $links Links for the given enrollment. * @param stdClass $enrollment Enrollment object. */ return apply_filters( 'llms_rest_enrollment_links', $links, $enrollment ); } /** * Handles the enrollment status update. * * @since 1.0.0-beta.1 * @since 1.0.0-beta.10 Added the `trigger` paramater.
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
1.0.0-beta.10 | Added the trigger paramater. |
1.0.0-beta.1 | Introduced. |