Browse: Home / Functions /

learndash_user_get_enrolled_courses

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 #


Parameters #

$user_id

(int) (Optional) User ID. Default 0.

$course_query_args

(array) (Optional) An array of WP_Query arguments.

Default value: array()

$bypass_transient

(boolean) (Optional) Whether to bypass the transient cache or not.

Default value: false


Return #

(array) An array of courses enrolled by user.


Source #

File: includes/ld-users.php


Changelog #

Changelog
Version Description
2.2.1 Introduced.