learndash_user_get_enrolled_courses( int $user_id, array $course_query_args = array(), boolean $bypass_transient = false )
Gets the list of all courses enrolled by the user.
Description Description
Parameters Parameters
- $user_id
-
(Optional) User ID. Default 0.
- $course_query_args
-
(Optional) An array of
WP_Query
arguments.Default value: array()
- $bypass_transient
-
(Optional) Whether to bypass the transient cache or not.
Default value: false
Return Return
(array) An array of courses enrolled by user.
Source Source
File: includes/ld-users.php
Changelog Changelog
Version | Description |
---|---|
2.2.1 | Introduced. |