plugins - How to dynamically hide/remove some menus from navigation? -


i'm working on wordpress plugin inserts pages using wp_insert_post() on activation. these pages used different purposes (user account dashboard, edit account info, change password, login, logout, etc...).

issue these pages menus displayed frontend users not correct because non logged-in user example should not see logout menu or menu private page until authenticated. now, i'm stucked @ how that. idea ?

i stress plugin login process seperated wp login

wordpress can not assign restrictions , roles specific pages, posts or terms default.

you create two separated menues , add custom logic template.

if(is_user_logged_in()) {     wp_nav_menu('foo'); } else {     wp_nav_menu('bar'); } 

Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -