Code snippet: Custom filter to remove unwanted events Sometimes it is simplest to resort to code if you want to remove something from the results set. The following example removes a specific organizer id from the results.