[wp-hackers] Can you merge two menus?

Andrew Nacin wp at andrewnacin.com
Thu Jun 16 14:24:47 UTC 2011

On Thu, Jun 16, 2011 at 9:18 AM, Peter van der Does
<peter at avirtualhome.com>wrote:
> Apologies for changing the subject line earlier.
> If you use unsetting of of menu items you still need to maintain two
> menus at all times. If you add a menu item to members menu you must
> also add it to the public one.

My approach was to have one menu, and if the user is a guest, then remove
all members-only menu items.

I think it's largely dependent on the use case. Though, it looks like your
code snippet uses internal functions -- that's something you'll want to

More information about the wp-hackers mailing list