I'm making (and I need a lot of help) a plugin for a new way of enrolment to prevent the massive enrolment in a course due to a weak or passed away enrolment key.
To prevent that situation I've made a plan that requires that the enrolment key it was not just a single one, i was thinking this could be readed of a external database and used only one time for all the courses that I have blocked, that means that all the enrolment keys of all the courses got access to one database where the enrolment key submitted will be compared whit the keys already filled on that database and once readed the "used" enrolment key will be erased or disabled.
How i can do that? or what is the complete path of this enrolment key variable????
Thanks for readme and sorry for the english.