How-to hide/remoove "Add New" in front-end menu

Home Forums Legacy Support Support queries How-to & Troubleshooting How-to hide/remoove "Add New" in front-end menu

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #146301
    lalala
    Participant
    Hi Vibe team, Being an instructor is default role in my site. Every log-in visitor can make courses as they like though of-course need admin approval for filtering. We admin encourage every visitor to share tutorial or whatever as much as they can. So organizing submitted course is a must. Therefor we need to restric course category and level. To be exact, we need to hide/remove 'Add new course category' and 'Course level' in front end menu. Here is the screen-shot  Big thanks in advance.  
    #146350
    Anshuman Sahu
    Keymaster
    Hi, Please paste the following code in wp-admin>plugin>editor>WPLMS customizer plugin   add_filter('wplms_course_creation_tabs',function($settings){ foreach ($settings['create_course']['fields'] as $key => $value) { if($value['id'] == 'course-cat' || $value['id'] == 'level'){ unset($settings['create_course']['fields'][$key]); } } return $settings; },999);   Refer : http://prntscr.com/idh5e5 http://prntscr.com/idh5kn
Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘How-to hide/remoove "Add New" in front-end menu’ is closed to new replies.