by Tim Hunt.
If you go to Admin -> Plugins -> Overview, that page works, so the code I gave works when in context.
If you go to Admin -> Plugins -> Overview, that page works, so the code I gave works when in context.