[wp-hackers] Menu Hook

Jamie Talbot wphackers at jamietalbot.com
Fri Sep 10 07:47:10 UTC 2004


Quoting Matt Mullenweg <m at mullenweg.com>:

> Jamie Talbot wrote:
>
> > Yeah, I had a look round the latest nightly and couldn't see where the hook
> is
> > inserted, or how it could be called?  Maybe it's just me being thick, but
> could
> > someone post a few simple lines of code demonstrating a menu insertion?
>
> $menu[23] = array('My Menu Item', 5, 'my-menu.php');

Oh, so you can just put that in the plugin file?  That was obvious wasn't it?

Thanks!

Jamie.



More information about the hackers mailing list