@pindorama
Let me explain here in detail:
So showing
All the Courses on My Courses Tab will not work because I have checked the code and found changing anything here will change the UI of "My Courses" Tab of Course Directory.
This tab will only list down those courses in which user is actually enrolled(it can be a paid course as well). But in that case it will show start course instead of showing Take this course.
According to my point of view if all the courses are already listed in course directory then the there is no point to display all the courses again somewhere else.
One more thing, I remember you mentioned somewhere in the post that you want to show course category as well.
For that I shared the article, using the coding of that article the UI will be changed and you can show the course category as well
refer:
https://wplms.io/support/knowledge-base/method-for-adding-custom-details-in-course-directory-page/
I think this time I explained well. I hope you will understand