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

Kapil Chugh kapil.chugh at hotmail.com
Thu Jun 28 13:34:13 UTC 2012


Ryann, please share your code.

Best Regards,

Kapil Chugh

-----Original Message-----

From: Ryann Micua
Sent: 28 Jun 2012 12:13:41 GMT
To: wp-hackers at lists.automattic.com
Subject: Re: [wp-hackers] hide specific nav items from public users

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/

_______________________________________________
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