Can I hide menu items from non-subscribers?
Yes you can!
Restricting menu items is done with the assistance of the Menu Item Visibility Control plugin.
Once activated, Menu Item Visibility Control will add an extra input field to each menu item, as shown below:
The visibility input field allows you to enter PHP conditional tags and the menu item will only be displayed if the conditional tags validate as TRUE.
If you want to only show a menu item to paid (and active) subscription holders (regardless of their subscription level), enter this in the input field:
If you wish to show a menu item only to non-active members, then use:
The ! means "not".
If you wish to show a menu item only to members of a specific subscription level, then use:
rcp_get_subscription() == 'Gold'
Or by subscription ID:
rcp_get_subscription_id() == 2
If you want to show a menu item to all expired members, perhaps to encourage them to signup again, use:
You must be very careful when entering the visibility options. A mistake could result in a whitescreen.