Hello,
I wanted to know how to delete or hide the tab "edit course" from the course menu
http://prntscr.com/9e5ksi
From whom do you want to hide the edit option?
Instructors or students or both or from admin too .
Hello Alex,
I would like to hide from instructors and students. Thank you
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'));
}
}
}