-
Author
-
September 14, 2018 at 20:46 #209622islamirParticipant
In the main top menu I do not want certain menu items to appear except for logged in users.
September 15, 2018 at 11:19 #209632Kieran_SQModeratorHi,
You’ll need to install a third party plugin to achieve this. You can try Menu Item Visibility Control which can be found in the WordPress plugin repository for free. Once installed a new field is added to each menu item titled ‘Visibility’ where you can add your own logic.
In your case, for logged in/out, it would be as follows
Logged in only
is_user_logged_in()
Logged out only
!is_user_logged_in()
Plugin: https://wordpress.org/plugins/menu-items-visibility-control/
Codex: https://developer.wordpress.org/reference/functions/is_user_logged_in/Thanks,
Kieran
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionIf you like the theme or the support you've received please consider leaving us a review on Themeforest!
Custom development requests can be sent to dev@seventhqueen.com, one of the development team will be happy to discuss your needs.
September 15, 2018 at 20:47 #209653islamirParticipantThank you dear Kieran
I was waiting for you to come back. Your support is really appreciative.
The plugin helped me.
September 15, 2018 at 21:29 #209656Kieran_SQModeratorHi,
Glad I could help. Feel free to open a new ticket any time with any other questions and we’ll be happy to assist.
Thanks,
Kieran
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionIf you like the theme or the support you've received please consider leaving us a review on Themeforest!
Custom development requests can be sent to dev@seventhqueen.com, one of the development team will be happy to discuss your needs.
-
AuthorPosts
The forum ‘Bugs & Issues’ is closed to new topics and replies.