In certain cases, you don’t want the teacher users to add learners to their courses. If you would like to hide the add learner meta box on the “learner management” screen.
Please note that this is a Developer level document. If you are unfamiliar with code/templates and resolving potential conflicts, select a WooExpert or Developer for assistance. We are unable to provide support for customizations under our Support Policy.
Link to the gist: https://gist.github.com/woogist/50ed2cac801fd91c011c