I think this might be the solution for you, Can you achieve filtering for plugins? - #4 by ReturnedTrue