added code to to filter category terms for omission, The code works if called directly inside the class but doesn't work as a filter. Array not being passed.