Hi, so the function is " core_enrol_get_users_courses" which gets the list of courses where a user is enrolled in. This function needs one parameter (userid).
I want to know how can I change that parameter into a new one, which is the email address of the user. Thanks