apply_filters( 'lifterlms_legacy_unenrollment_action', bool $allow_unenrollment )
This filter allows customization of enrollments created prior to version 3.0.0
Description Description
Prior to 3.0.0 enrollments did not track an enrollment trigger so any unenrollments performed on an enrollment in this state will automatically be unenrolled.
Returning false
will prevent unenrollments against enrollments which don’t have an enrollment trigger.
Parameters Parameters
- $allow_unenrollment
-
(bool) If true, allows unenrollment, otherwise prevents unenrollment.
Source Source
Changelog Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |