Prevent Instructors to create new course category

Home Forums Legacy Support Support queries Other issues Prevent Instructors to create new course category

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #367633
    piwheel
    Participant
    Hello I need to prevent the instructors from creating new categories in the (create course) screen https://prnt.sc/1m7mli9 as in the screenshot I want to remove the "Add New" option in the "Course Category" dropdown
    #367751
    Veronica
    Moderator
    hi you need to add this code in wplms-customizer.php
    add_filter('wplms_create_course_settings',function($data){
        $data['settings']['create_taxonomy_term_caps'] = 'manage_options';
        return $data;
    });
    #367772
    piwheel
    Participant
    sorry, I tried to locate the "wplms-customizer.php" file many times and had no luck, could you help me and tell me where to find that file?
    #367867
    Veronica
    Moderator
    hi please download the plugin from here: https://wplms.io/support/wp-content/uploads/2015/08/wplms-customizer.zip upload the zip in wp-admin>>plugins>>add new>>upload and then in plugins>>plugin editor select wplms-customizer plugin there you will see the wplms-customizer.php file add the code there
Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Prevent Instructors to create new course category’ is closed to new replies.