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


Top ↑

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


Top ↑

Return Return

(boolean)


Top ↑

Source Source

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


			

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.