No matter why you want to create a course, LearnPress can help you build it in WordPress. LearnPress is a free learning management system (LMS) plugin offered by ThimPress. It essentially allows you to turn your website, or at least part of your website, into an online school similar to Udemy, Teachable and similar platforms.
https://www.wpkube.com/how-to-add-courses-to-wordpress-with-learnpress/