How to get all courses, including the "not current" ones in which a user is enrolled in?

How to get all courses, including the "not current" ones in which a user is enrolled in?

by Carles Franquesa -
အကြောင်းပြန်မှု အရေအတွက်: 0
Hi all,

The core_enrol_get_users_courses API function only gives me back the courses whose status is "active". Does any know the way to get all courses (i.e. all enrollments) including the "not current" status ones, of a certain user?

Thanks!

Carles
ပျှမ်းမျှအဆင့်သတ်မှတ်ချက်များ: -