-
Author
-
June 9, 2018 at 16:36 #200398ChristelijkPodiumParticipant
Hi! On my website: http://christelijk-podium.nl I want registered users to have My Courses and My Membership in their Account Menu. But I want them hidden from unregistered users.
How can I hide these menu items or hide the entire My Account menu item from the main menu?
June 9, 2018 at 16:47 #200400Kieran_SQModeratorHi,
To do this you will need to install a third party plugin that handles conditional menus. Personally I use Menu Item Visibility Control which can be installed for free from the WordPress plugin repository.
https://wordpress.org/plugins/menu-items-visibility-control/
If you install this plugin it will add a new field to each item that is within the menu titled ‘Visibility’ where you can enter PHP conditionals and functions.
You can use the below to restrict certain menus to only logged in users or only logged out users
Show only if the user is logged in
is_user_logged_in()
Show only if the user is logged out
!is_user_logged_in()
There are obviously many thousands more ways to use this but this will suit the situation you have described.
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.
Attachments:
You must be logged in to view attached files.June 9, 2018 at 22:41 #200422Kieran_SQModeratorHi,
Great! Feel free to open a new ticket any time, and we’ll be happy to help 🙂
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
You must be logged in to reply to this topic.