WP Fusion lets you control the visibility of Divi modules based on a logged-in user’s CRM tags.
When editing a module, select the Advanced tab, and scroll down to the Visibility section.
You can enter a comma-separated list of tag names or tag IDs. If the user doesn’t have any of the specified tags, the module will be hidden.
For more advanced control, install and activate the Content Visibility for Divi plugin. When editing any module, you’ll now see a new setting where you can put in rules regarding when that module should be displayed.
The setting accepts any PHP expression that evaluates to either “true” or “false”. Using WP Fusion’s has_tag() function you can create very specific rules regarding when a module should be displayed.
- Require the tag Active Subscriber to view the module:
wpf_has_tag( 'Active Subscriber' )
- Require both the Active Subscriber and Gold Member tags to view the module:
wpf_has_tag( 'Active Subscriber' ) && wpf_has_tag( 'Gold Member' )
- Require either the Active Subscriber or Gold Member tags:
wpf_has_tag( 'Active Subscriber' ) || wpf_has_tag( 'Gold Member' )
- Only show the module if the user is logged in and does not have the tag Payment Failed:
! wpf_has_tag( 'Payment Failed' )