[wp-hackers] Menu Hook

Robert Deaton false.hopes at gmail.com
Sat Sep 11 01:21:26 UTC 2004


It would be nice if a dev would consider making a real hook, because
what happens when two plugins use $menu[23]? it breaks. There's a very
simple way to fix it, I wrote 5 lines of code to do it, so just keep
that in mind.


On Fri, 10 Sep 2004 08:22:21 -0400, Chris Davis <chrisdmitri at gmail.com> wrote:
> I was aware of the method, I was just fishing to see if it had been
> added to the wiki, or some other form of doco for the benefit of the
> larger plug-in community.
> 
> On Fri, 10 Sep 2004 16:47:10 +0900, Jamie Talbot
> 
> 
> <wphackers at jamietalbot.com> wrote:
> > 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.
> >
> >
> >
> > _______________________________________________
> > hackers mailing list
> > hackers at wordpress.org
> > http://wordpress.org/mailman/listinfo/hackers_wordpress.org
> >
> 
> 
> 
> _______________________________________________
> hackers mailing list
> hackers at wordpress.org
> http://wordpress.org/mailman/listinfo/hackers_wordpress.org
>



More information about the hackers mailing list