Remove “related courses” from single course page modern theme

Please add the given code in your wplms-customizer.php file in wplms customizer plugin  :

add_action('init','wplms_modern_related_course_remove');
function wplms_modern_related_course_remove(){
  $modern = Wplms_Modern_Init::init();
  remove_action('wplms_modern_after_course_front',array($modern,'wplms_modern_course_front'));
}

 

Leave a Reply

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