hide "edit course" in course menu

Home Forums Legacy Support Support queries How-to & Troubleshooting hide "edit course" in course menu

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #13861
    deadelfujiama
    Spectator
    Hello, I wanted to know how to delete or hide the tab "edit course" from the course menu http://prntscr.com/9e5ksi
    #13967
    Anshuman Sahu
    Keymaster
    From whom do you want to hide the edit option? Instructors or students or both or from admin too .
    #14040
    deadelfujiama
    Spectator
    Hello Alex, I would like to hide from instructors and students. Thank you
    #14159
    Anshuman Sahu
    Keymaster
    Try adding this code in your wplms-customizer.php file in wplms customizer plugin  :   add_action('init','remove_edit_course_for_inst',9999); function remove_edit_course_for_inst(){ if(!current_user_can('manage_options') || !is_user_logged_in()){ if(class_exists('WPLMS_Front_End')){ $fee = WPLMS_Front_End::instance(); remove_action('bp_course_options_nav',array($fee,'wplms_edit_course_menu_link')); } }   }
    #14215
    deadelfujiama
    Spectator
    thank you it worked
Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘hide "edit course" in course menu’ is closed to new replies.