The pasted code itself shows where the error lies.
The code is for WPLMS customizer plugin please check this tutorial : http://quick.as/gvdataoy
The first part of the code add_filter...
should be pasted above the line shown in the screenshot.
and remaining below the line in the screenshot.