Remove results,stats,my courses tab for instructors only

Paste this code in wp-admin > Plugins > Editor > Select WPLMS Customizer Plugin > wplms-customizer.php

add_action('bp_setup_nav','bp_remove_menu_tabs_from_user_profile',999);

function bp_remove_menu_tabs_from_user_profile() {

if(current_user_can('instructor')){

bp_core_remove_subnav_item('course','course-stats');

bp_core_remove_subnav_item('course','course-results');

?>




        
        	

Leave a Reply

Your email address will not be published. Required fields are marked *