If you want to restrict menu items to active subscription holders, or members of specific subscription levels in Restrict Content Pro, the Menu Item Visibility Control will make your job pretty easy and provide complete control.
Once activated, Menu Item Visibility Control will add an extra input field to each menu item, as shown below:
This 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 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( $GLOBALS['user_ID'] ) == 'Gold'
Or by subscription ID:
rcp_get_subscription_id( $GLOBALS['user_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.