LLMS_Student::get_enrollments( string $post_type = 'course', array $args = array() )

Retrieve IDs of user’s enrollments by post type (and additional criteria)


Description Description


Parameters Parameters

$post_type

(Optional) name of the post type (course|membership)

Default value: 'course'

$args

(Optional) query arguments @arg int $limit number of courses to return @arg string $orderby table reference and field to order results by @arg string $order result order (DESC, ASC) @arg int $skip number of results to skip for pagination purposes @arg string $status filter results by enrollment status, "any", "enrolled", "cancelled", or "expired"

Default value: array()


Top ↑

Return Return

(array) "results" will contain an array of course ids "more" will contain a boolean determining whether or not more courses are available beyond supplied limit/skip criteria "found" will contain the total possible FOUND_ROWS() for the query


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.