I'm a newbie plugin developer, and I've had an idea for what I though would be a simple to build debut plugin, but I seem to have reached a brick wall with it and wonder if anyone can suggest some alternative approaches or even tell me whether it's even possible.
The aim of the plugin was this: to create tool tips showing the plugin name, for any menu items in the Admin pages that were created by plugins (i.e. not part of the default WP install). So for example you might see the menu item: Users/Roles, and think 'where does that Roles item come from?' You'd then hover over the item, and a tool tip would pop up saying "Added by Members plugin", so you know that item was added by the Members plugin.
So at first I explored the
Walker class, but this didn't seem to apply to menus in the admin. Next I looked for filters for the admin menu, to try and add an HTML title attribute into menu items created by plugins, but I didn't seem to be able to find any suitable filters.
I looked at the
$submenu global variables in WP, but for some reason, some menu items that were present in the page weren't in these collections, in particular those created by the aforementioned Members plugin.
So finally I thought I would grab the array of plugins using the
This worked partially, but since many of the plugin names do not appear in the links they create or even the titles of the menus they create, it's incomplete and so not very useful.
So I wonder if there's anything I've overlooked that could be a way to achieve this functionality more robustly?
Thanks for any help/suggestions.