[wp-hackers] hide specific nav items from public users

Ryann Micua ryannmicua at gmail.com
Thu Jun 28 12:13:29 UTC 2012

Thanks so much. wp_get_nav_menu_items filter worked just fine.

if anybody is in this situation too and wants to know what I did, just 
let me know and I'll post it here. Thanks!

> Hi Ryann,
> You're right, there are in fact 2 (maybe more?) filters that lets you do
> what you want with the items to be displayed in a nav menu (supposing
> you use the wp_nav_menu function):
>   1. wp_get_nav_menu_items:
>   2. wp_nav_menu_objects
> You get an array of "item" objects which are globally "post" objects but
> with some more attributes...
> Hope that helps.
> Lionel

*Ryann Micua*
/Web Developer/

Website: /www.pogidude.com/
Skype: /rmicua/
Mobile: /+639169273059/

More information about the wp-hackers mailing list