[wp-hackers] wp_nav_menu too simplistic?

John Bloch jbloch at olympianetworks.com
Tue Apr 6 21:22:51 UTC 2010


@Mike: +1!

@Otto: Fair enough. I agree that it should have been built differently to
begin with. But I think extending the walker class is an acceptable amount
of work for the desired effect, given that's how it *has* been built.

What exactly can't you modify by extending the walker and putting your own
hooks in?

John P. Bloch


On Tue, Apr 6, 2010 at 5:06 PM, Otto <otto at ottodestruct.com> wrote:

> On Tue, Apr 6, 2010 at 4:02 PM, Mike Schinkel
> <mikeschinkel at newclarity.net> wrote:
> > For the case of modifying menu items it seems it would solve some use
> cases if we simply added a 'wp_setup_nav_menu_item' filter on the return
> value of the wp_setup_nav_menu_item() function.  If others agree, I can
> submit a patch...
>
> Not bad. Put one on wp_get_nav_menu_item instead (or also). That would
> be needed to modify the output as well as the configuration system, it
> appears like.
>
> -Otto
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>


More information about the wp-hackers mailing list