I'll try to explain my new task.
A teacher can enrol a large cohort to a particular course via manual enrollment. But the number of students who can actually take part in the course (be enrolled) should be limited, e.g. 50. All users from the cohort will get an e-mail notification "number of students is limited, accept/decline your participation". Then the first 50 of "accepted" users will be enrolled.
The questions are:
- Where should I store the "max_number_of_students" field in database?
- Can I connect this field with manual enrollment plugin? Or should I create a new enrollment plugin?