Remove Sections from Course Menu

Home Forums Legacy Support Support queries Styling issues Remove Sections from Course Menu

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #11532
    theliosc
    Spectator
    Hey Guys, I am trying to add this to the WPLMS Customizer – wplms_customizer.php but I am getting an error message:   Parse error: syntax error, unexpected T_STRING in /home/elitetradeskills/public_html/wp-content/plugins/wplms-customizer/wplms-customizer.php on line 65 add_filter('wplms_course_nav_menu','wplms_course_remove_nav_section',100); function wplms_course_remove_nav_section($sections){ unset($sections['members']); unset($sections['curriculum']); unset($sections['events']);   return $sections; }   Any idea why?
    #11583
    Anshuman Sahu
    Keymaster
    Please copy the code from here : add_filter('wplms_course_nav_menu','wplms_course_remove_nav_section',100); function wplms_course_remove_nav_section($sections){ unset($sections['members']); unset($sections['curriculum']); unset($sections['events']); return $sections; } It seems when you copied the code from the forums there maybe some html formatting also copied with it .
    #11729
    theliosc
    Spectator
    Thank you, all good now :)
Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Remove Sections from Course Menu’ is closed to new replies.