Front end not working when woocommerce deactivated (quick fix)

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

add_filter('wplms_course_creation_tabs','wplms_woocommerce_front_end_check');
function wplms_woocommerce_front_end_check($tabs){
  if(in_array('woocommerce/woocommerce.php', apply_filters('active_plugins', get_option('active_plugins')))){
  }else{ // Not found
    unset($tabs['course_pricing']['fields'][2]);
  }
  return $tabs;
}

 

Leave a Reply

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