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?
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 .
Thank you, all good now :)