Scan plugins and themes for hooks.