Browse: Home / Functions /


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 #


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


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

Default value: array()


(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 #

Version Description
2.2.1 Introduced.