Skip to main content

Cornerstone Extension

Cornerstone Logo

Cornerstone Overview

Cornerstone is a WordPress page builder designed to make developing WordPress websites simple yet flexible.

ActiveMember360 Cornerstone Extension Overview

ActiveMember360 operates with Cornerstone without any need for the ActiveMember360 Cornerstone Extension. All features of ActiveMember360 work with Cornerstone including shortcodes.

The ActiveMember360 Cornerstone Extension is used solely to control the display of Cornerstone Elements. This enables sophisticated controls for the use of dynamic content, personalization and segmentation.

The ActiveMember360 Cornerstone Extension provides an unsurpassed level of integration between ActiveCampaign and your WordPress site using Cornerstone.

Important

With the ActiveMember360 Cornerstone Extension enabled, Cornerstone conditions are disabled in preview mode.

ActiveMember360 Conditionals

Cornerstone Builder Element visibility can be controlled by ActiveMember360 Cornerstone Extension using conditionals based upon:

  • Contact list status:
    • Contact is active in any or all of the lists selected
    • Contact is unconfirmed in any or all of the lists selected
    • Contact is unsubscribed in any or all of the lists selected
    • Contact is bounced in any or all of the lists selected
  • Contact tag status:
    • Contact has any or all of the tags selected
    • Contact does not have any or all of the tags selected
  • Contact field comparison:
    • Contact has a contact field that compares with a value
    • Contact has a contact field that compares with another of their contact fields
  • User login status:
    • User is logged in
    • User is not logged in
    • User has failed payment status
    • It is the user’s first login
  • User role status:
    • User has any or all of the roles selected
    • User does not have any or all of the roles selected
  • PHP statement:
    • Any WordPress conditional statement
    • Any WooCommerce conditional statement
    • Predefined conditional
  • GamiPress User status:
    • User has any or all of the achievements selected
    • User does not have any or all of the achievements selected
    • User has any or all of the ranks selected
    • User does not have any or all of the ranks selected
    • User has a points type total that compares with a value
  • Learndash User status:
    • User is enrolled in any or all of the courses selected
    • User is not enrolled in any or all of the courses selected
    • User has not started any or all of the courses selected
    • User has in progress any or all of the courses selected
    • User has completed any or all of the courses selected
    • User has not completed any or all of the lessons selected
    • User has completed any or all of the lessons selected
    • User has not completed any or all of the topics selected
    • User has completed any or all of the topics selected
  • WooCommerce User status:
    • User has purchased any or all of the products selected
    • User has not purchased any or all of the products selected
    • User has pending status for any or all of the subscriptions selected
    • User has active status for any or all of the subscriptions selected
    • User has on hold status for any or all of the subscriptions selected
    • User has pending cancellation status for any or all of the subscriptions selected
    • User has cancelled status for any or all of the subscriptions selected
    • User has expired status for any or all of the subscriptions selected
  • …any multiples and combinations of the above.

Activate Cornerstone Extension

Steps to activate the Cornerstone extension
Steps to activate the Cornerstone extension
  1. In WordPress administrator main navigation click ActiveMember360, Extensions.
  2. In ActiveMember360 Extensions tabs click Cornerstone.
  3. Set Enable Cornserstone Extension to Yes.
  4. Click Save Settings.

Set ActiveMember360 Conditional based Cornerstone condition to Show/Hide Cornerstone Elements

Steps for setting a conditional based condition for Cornerstone Element visibility
Steps for setting a conditional based condition for Cornerstone Element visibility
  1. Click on the element you wish to set a display condition for.
  2. Click on the Customize tab.
  3. Select Conditions.
  4. Choose Conditional in the ActiveMember360 section in the dropdown.
  5. Choose the evaluation mode of the condition. If selected is true the conditional must evaluate true, if selected is false, the conditional must evaluate false.
  6. Select the ActiveMember360 Conditional.
  7. Click on Save.

Set ActiveCampaign Tag based Cornerstone condition to Show/Hide Cornerstone Elements

Steps for setting an ActiveCampaign Tag based condition for Cornerstone Element visibility
Steps for setting an ActiveCampaign Tag based condition for Cornerstone Element visibility
  1. Click on the element you wish to set a display condition for.
  2. Click on the Customize tab.
  3. Select Conditions.
  4. Choose User has Tag in the ActiveMember360 section in the dropdown.
  5. Choose the evaluation mode of the condition. If selected is true the user must have the selected tag, if selected is false, the user must not have the selected tag.
  6. Select the ActiveCampaign Tag.
  7. Click on Save.

Set PHP Statement based Cornerstone condition to Show/Hide Cornerstone Elements

Steps for setting a PHP Statement based condition for Cornerstone Element visibility
Steps for setting a PHP Statement based condition for Cornerstone Element visibility
  1. Click on the element you wish to set a display condition for.

  2. Click on the Customize tab.

  3. Select Conditions.

  4. Choose PHP Statement in the ActiveMember360 section in the dropdown.

  5. Choose the evaluation mode of the condition. If selected is true the PHP Statement must evaluate true, if selected is false, the PHP Statement must evaluate false.

  6. In the PHP Statement input area define the required PHP conditional statement. Any valid PHP conditional function can be used. ActiveMember360 has conditional functions that can be used:

    mbr_has_tags()

    Here are some examples:

    a. Statement evaluates as TRUE if the user HAS tag 123.

    mbr_has_tags( '123' )

    b. Statement evaluates as TRUE if the user HAS tag 123 OR 234.

    mbr_has_tags( '123,234' )

    c. Statement evaluates as TRUE if the user HAS tag 123 OR 234.

    mbr_has_tags( array(123,234) )

    d. Statement evaluates as TRUE if the user HAS tag 123 AND 234.

    mbr_has_tags( '123,234', 'all' )

    e. Statement evaluates as TRUE if the user HAS tag 123 AND 234.

    mbr_has_tags( array(123,234), 'all' )
    Note

    Any function preceded with an exclamation mark ! specifies the negative use case of the function.

    f. Statement evaluates as TRUE if the user DOES NOT HAVE tag 123.

    !mbr_has_tags( '123' )
    Note

    It is also possible to combine conditions with && (representing AND) and || (representing OR).

    g. Statement evaluates as TRUE if the user HAS tag 123 AND DOES NOT HAVE tag 234.

    mbr_has_tags( '123' ) && !mbr_has_tags( '234' )

    h. Statement evaluates as TRUE if the user HAS tag 123 OR DOES NOT HAVE tag 234.

    mbr_has_tags( '123' ) || !mbr_has_tags( '234' )
    Note

    You can also use any conditional tags including WordPress and WooCommerce conditional tags.

    A list of WordPress Conditional Tags can be found here:

    WordPress Conditional Tags

    A list of WooCommerce Conditional Tags can be found here:

    WooCommerce Conditional Tags

    i. Statement evaluates as TRUE if this is the home page.

    is_home()
  7. Click on Save.