llms_unenroll_student( int $user_id, int $product_id, string $new_status = 'expired', string $trigger = 'any' )
Remove a LifterLMS Student from a course or membership
Description Description
See also See also
- LLMS_Student->unenroll(): the class method wrapped by this function
Parameters Parameters
- $user_id
-
(Required) WP User ID.
- $product_id
-
(Required) WP Post ID of the Course or Membership.
- $new_status
-
(Optional) The value to update the new status with after removal is complete.
Default value: 'expired'
- $trigger
-
(Optional) Only remove the student if the original enrollment trigger matches the submitted value. Passing "any" will remove regardless of enrollment trigger.
Default value: 'any'
Return Return
(boolean)
Source Source
File: includes/functions/llms.functions.person.php
Changelog Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |