Remove a section from Course menu

Add below code in Child theme functions.php or WPLMS Customizer – wplms_customizer.php file :

add_filter('wplms_course_nav_menu','wplms_remove_course_menu',9,1);
function wplms_remove_course_menu($defaults){
  unset($defaults['members']);
  unset($defaults['curriculum']);
  unset($defaults['events']);

  return $defaults;
}

In above :

unset($defaults[‘members’]); removes the members section

unset($defaults[‘curriculum’]); removes the curriculum section

unset($defaults[‘events’]); removes the events section

unset($defaults[‘news’]); removes the news section

unset($defaults[‘groups’]); removes the groups section

unset($defaults[‘forums’]); removes the forums section

Was this article helpful?

Related Articles