- This topic has 4 replies, 2 voices, and was last updated 9 years, 9 months ago by .
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 total)
- You must be logged in to reply to this topic.
WordPress Membership Plugin
Simple Membership Plugin › Forums › Simple Membership Plugin › Menus content protection
Tagged: Content Protection menu
Hi,
I have read content protection user guide, I am curious about may I do menus protection? I found the menus (for example, user activities) didn’t protect content after setting the protection.
ps. I used OneSocial theme for my blog.
Thanks.
+1 I think. I’d like ability to show/hide menu item depending on if person is logged in or not. Consider these 2 menu items:
LOGIN (goes to login page)
MY ACCOUNT (goes to profile page)
User not logged in:
LOGIN (show)
MY ACCOUNT (hide)
User IS logged in:
LOGIN (hide)
MY ACCOUNT (show)
Yes! Wanna know know how to protect menus content in Buddypress….
I’ve got some good news, Erica Li! This morning I found the “If Menu” plugin that does what I want:
http://www.wpbeginner.com/plugins/how-to-add-conditional-logic-to-menus-in-wordpress/
It is a simple plugin that seamlessly integrates with the WP Appearance/Menus management tool. Right out of the box, it support showing or hiding menu items depending on whether the user is logged in or not.
While it takes a bit of PHP programming skill, the article also includes instructions for how to expand the filter conditions. This means we could add filters to hide or show based on Membership Level, etc.
@mbrsolution shared some Simple Membership PHP tricks with me that could be used to expand the If Menu plugin’s filters if you need.
https://simple-membership-plugin.com/simple-membership-miscellaneous-php-tweaks/
If I develop any of these, I’ll post the details here. If I knew anything about creating WP plugins, I assume I could develop a Simple Membership <===> If Menu plugin integration that would add SM specific filters to the If Menu filter set. No doubt this would be easy work for the SM developers.
Thanks, TroyWolf!
I will give it a try!!! =)