Hello WPLMS Team,
when I try to
Add email field in course stats to download I find that the expired users are also exported in the csv file the same thing for the usernames , so to fix the email exporting part I try to add this function "wplms_user_course_active_check($user_id,$course_id)" to Checks if the course is taken by the user and it is not expired, like this :
if(isset($field_val->user_email ) && $field_val->user_email && wplms_user_course_active_check($user_id,$course_id))
$csv[$i][]= $field_val->user_email ;<code></code>
Can you guys fix that for the other fields , thanks.
Regards,
The X learner