[wp-hackers] Real Menu/Submenu Hooks (patch)
Matt Mullenweg
m at mullenweg.com
Sat Sep 11 17:08:48 UTC 2004
Robert Deaton wrote:
> Unsatisfied with using $menu[23]= as a hook for adding items to the
> admin menu, I wrote a patch for the latest CVS to use real hooks. It
> also has hooks for the submenus.
Does this allow you to say where the menu item goes? Otherwise it's pretty
much equivalent to something like
$menu['edit.php'][] = ....
Whether people should be sticking stuff on the main menu at all is another
issue. Perhaps it would be better not to encourage this behaviour for the
main menu and allow the submenu to be modified as demonstrated.
--
Matt Mullenweg
http://photomatt.net | http://wordpress.org
http://pingomatic.com | more soon...
More information about the hackers
mailing list