Remove Courses on Dashboard

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #35794
    Marvin EisenMarvin Eisen
    Participant

    I love the theme and have installed a custom LMS (learndash) that has its own funcionality for entering courses. Therefore I would like to remove the “course” link on the dashboard as I will not be using it to enter courses. Is here a way to remove the native course link on the wordpress dashboard?
    Thank you.

    #35798
    RaghavendraRaghavendra
    Moderator

    Can you pls check if having the following code in the functions.php of the child theme helps?

    function mo_delete_post_type(){
        unregister_post_type( 'courses' );
    }
    add_action('init','mo_delete_post_type');
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.