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


Top ↑

Return Return

(array) An array of courses enrolled by user.


Top ↑

Source Source

File: includes/ld-users.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
2.2.1 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.