Coursepress Student completion date

Is the Coursepress Student completion date stored in the database?
If so, where?
Is there a function to call it?

  • Kasia Swiderska

    Hello Black Fox,

    Course completion date is kept in the wp_usermeta table where meta_key is _course_{course_ID}_completed

    but as you see data is serialized so it's not easy to get this from database.

    Completion date is used in basic certificates in file /wp-content/plugins/coursepress/includes/classes/class.basic.certificate.php and if you take a look there in line 431 there is function _default_certificate_content() that pulls this data for certificate.

    I wasn't able to find another function that would pull this information from database in plugin code :slight_frown:

    kind regards,
    Kasia