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::delete_enrollment_postmeta( int $product_id, string $trigger = null )
Remove student enrollment postmeta for a given product.
Description Description
Parameters Parameters
- $product_id
-
(Required) WP Post ID of the course or membership.
- $trigger
-
(Optional) String the reason for enrollment. Default
null
Default value: null
Return Return
(boolean) Whether or not the enrollment records have been succesfully removed.
Source Source
File: includes/models/model.llms.student.php
Changelog Changelog
Version | Description |
---|---|
3.33.0 | Introduced. |