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_Student::remove_membership_level( int $membership_id, string $status = 'expired', boolean $delete = false )
Remove a student from a membership level.
Description Description
Parameters Parameters
- $membership_id
-
(Required) WP Post ID of the membership.
- $status
-
(Optional) Status to update the removal to. Default is
expired
.Default value: 'expired'
- $delete
-
(Optional) Status to update the removal to. Default is
false
.Default value: false
Return Return
(void)
Source Source
File: includes/models/model.llms.student.php
Changelog Changelog
Version | Description |
---|---|
3.7.5 | Unknown. |
3.36.2 | Added the $delete paramater, that will allow related courses enrollments data deletion. |
2.7 | Introduced. |