what I want : adding a user to a cohort and it should be enrolled inside all courses that related to category which I linked it with my cohort when I created it "by set the context of cohort to that category"
what I have did :
1. enable "category enrolments " from plugin
2. define roles to be set in "category" context
3. enable or allow "category enrolments" capability to those roles were set in step 2 ..
then it should work and sync users inside the cohort onside that courses but it doesn't !!!
I have tried to add/remove it and run cron .. but still not working ..
anybody have knowledge in this standard problem ,, please help