Remove child category from course category dropdown in edit course

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

add_filter('wplms_frint_end_field_taxonomy_args','custom_wplms_front_end_field_taxonomy_args');

add_filter('wplms_front_end_field_taxonomy_args','custom_wplms_front_end_field_taxonomy_args');

function custom_wplms_front_end_field_taxonomy_args(){
    return array('hide_empty' => false,parent=>0,'orderby'=>'name','order'=>'ASC');
}

 

Leave a Reply

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