LLMS_Student::get_enrollment_status( int $product_id, bool $use_cache = true )
Get the current enrollment status of a student for a particular product
Description Description
Parameters Parameters
- $product_id
-
(Required) WP Post ID of a Course, Section, Lesson, or Membership
- $use_cache
-
(Optional) If true, returns cached data if available, if false will run a db query
Default value: true
Return Return
(false|string) When no enrollment status exists, returns false
. Otherwise returns the enrollment status as a string.
Source Source
File: includes/models/model.llms.student.php
Changelog Changelog
Version | Description |
---|---|
4.4.1 | Moved filter llms_user_enrollment_status_allowed_post_types to function llms_get_enrollable_status_check_post_types() . |
4.18.0 | Added a tie-breaker when there are multiple enrollment statuses with the same date & time. |
3.37.9 | Added filter llms_user_enrollment_status_allowed_post_types . |
3.17.0 | Unknown. |
3.0.0 | Introduced. |