LLMS_Student::is_enrolled( int|array $product_ids = null, string $relation = 'all', bool $use_cache = true )
Determine if a student is enrolled in a Course or Membership.
Description Description
See also See also
Parameters Parameters
- $product_ids
-
(Optional) WP Post ID of a Course, Section, Lesson, or Membership or array of multiple IDs.
Default value: null
- $relation
-
(Optional) Comparator for enrollment check. All = user must be enrolled in all $product_ids. Any = user must be enrolled in at least one of the $product_ids.
Default value: 'all'
- $use_cache
-
(Optional) If true, returns cached data if available, if false will run a db query.
Default value: true
Return Return
(boolean)
Source Source
File: includes/models/model.llms.student.php
Changelog Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |