Viewing 6 posts - 1 through 6 (of 6 total)
The topic ‘remove unit types wplms 4’ is closed to new replies.
Hi
Is it possible to remove or disable some units types? See: https://prnt.sc/117a94u
Flashcard will be removed in the next update of the wplms_plugin.
For others let me check at our end.
Use this custom code to remove elementor and upload unit type
add_filter('wplms_course_creation_tabs',function($tabs){
$types = $tabs['course_curriculum']['fields'][0]['curriculum_elements'][1]['types'];
$ntypes = [];
foreach ($types as $key => $type) {
if(!($type['id'] == 'elementor' || $type['id'] == 'upload')){
$ntypes[] = $type;
}
}
$tabs['course_curriculum']['fields'][0]['curriculum_elements'][1]['types'] = $ntypes;
return $tabs;
},999);
Add this code to your customizer plugin. And make sure the plugin is active.
The topic ‘remove unit types wplms 4’ is closed to new replies.