mbr_is_contact
Usage
This shortcode determines the content to be included based upon whether the current logged in user is an ActiveCampaign contact or has the contact ID specified.
Parameters
Parameters | Description |
---|---|
id | The ActiveCampaign contact ID to be used for the evaluation. Default: none. Required: no. |
Validity
This shortcode is evaluated for any type of visitor.
Conditional Branching
[ELSE_is_contact] conditional branching is supported.
Nesting
Shortcode nesting is supported:
[mbr_is_contact1] thru [mbr_is_contact19]
[ELSE_is_contact1] thru [ELSE_is_contact19]
[/mbr_is_contact1] thru [/mbr_is_contact19]
Examples
- Example 1
- Example 2
- Example 3
Displays "Display this if the visitor is logged in AND is an ActiveCampaign contact" if the current logged in WordPress user is linked to an ActiveCampaign contact:
[mbr_is_contact]
Display this if the visitor is logged in AND is an ActiveCampaign contact
[/mbr_is_contact]
Displays "Display this if the visitor is logged in AND is an ActiveCampaign contact" if the current logged in WordPress user is linked to an ActiveCampaign contact. Otherwise "Display this if the visitor is NOT logged in OR is logged in and is not an ActiveCampaign contact" is displayed:
[mbr_is_contact]
Display this if the visitor is logged in AND is an ActiveCampaign contact
[ELSE_is_contact]
Display this if the visitor is NOT logged in OR is logged in and is not an ActiveCampaign contact
[/mbr_is_contact]
Displays "Display this if the visitor is logged in AND is an ActiveCampaign contact" if the current logged in WordPress user is linked to the ActiveCampaign contact ID 1234. Otherwise "Display this if the visitor is NOT logged in OR is logged in and doesn't have contact ID 1234" is displayed:
[mbr_is_contact id='1234']
Display this if the visitor is logged in AND has contact ID 1234
[ELSE_is_contact]
Display this if the visitor is NOT logged in OR is logged in and doesn't have contact ID 1234
[/mbr_is_contact]
API
There is no ActiveMember360 API function equivalent for this shortcode.