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


Top ↑

Return Return

(void)


Top ↑

Source Source

File: includes/models/model.llms.student.php


			

Top ↑

Changelog 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.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.