Tagged Questions
2
votes
0answers
47 views
How do I approach removing menu items on the fly based on settings in my plugin?
I've started writing a plugin that allows the administrator to select specific pages and set them to be visible only to logged-in users; the plugin optionally applies the restriction to all child ...
0
votes
1answer
341 views
Add log in link to menu in Twenty Twelve
I can't find a way to add the log in link to the new theme of WordPress, Twenty Twelve.
I did find a lot of answers on the older theme, where they suggest to add some code in the functions.php file. ...
1
vote
1answer
737 views
How to use logout function on custom menu link?
All
I am using wordpress custom menu, and there is one menu as Logout.
I know wordpress Logout function <?php echo wp_logout_url(); ?>
But how can i use it in custom menu ?
2
votes
2answers
634 views
wp_nav_menu log in/out link?
I have a wp_nav_menu showing pages, but I'd also like to include a log in/out link, based on the current state of the user, which will redirect them to the home page.
I've looked far and wide, but ...