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.


Top ↑

Parameters Parameters

$allow_unenrollment

(bool) If true, allows unenrollment, otherwise prevents unenrollment.


Top ↑

Source Source

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

View on GitHub



Top ↑

Changelog Changelog

Changelog
Version Description
3.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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