remove unit types wplms 4

Home Forums Legacy Support Support queries Other issues remove unit types wplms 4

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #351347
    gsjaak_118
    Participant
    Hi Is it possible to remove or disable some units types? See: https://prnt.sc/117a94u
    #351368
    Scott Lang
    Moderator
    Flashcard will be removed in the next update of the wplms_plugin. For others let me check at our end.
    #351496
    gsjaak_118
    Participant
    Ok would be great to have some more control over that
    #351540
    Scott Lang
    Moderator
    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.
    #351830
    gsjaak_118
    Participant
    thanks!
    #351889
    Veronica
    Moderator
    good to know this works closing this one
Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘remove unit types wplms 4’ is closed to new replies.