Hello awesome community,
I am developping a custom local plugin which listen to the \core\event\user_enrolment_created event.
I need to find a solution to detect if an enrolment is created by a webservice or manually.
The user are enrolled by a Wordpress plugin (EdwiserBridge) into Moodle courses.
Do you have any ideads ?
My only other option is to detect if a user is enrolled in a particular course.
But this course need to be hidden.