Hi,
I have a local plugin that add some fields to a a course - describing the course.
How can I backup the fields of that course when restoring a course as a new course?
In my plugin I have a course object of the new course that has been created:
stdClass Object ( [courseid] => 17 [userid] => 2 [type] => course [target] => 2 [mode] => 10 [operation] => restore [samesite] => 1 )
I need the Id of the original course.
Thanks,
Raphael