Block Editor Module
WordPress Block Editor Overview
The WordPress Block Editor, previously known as Gutenberg, is designed to make adding rich content to WordPress simple yet flexible.
Since the release of WordPress 5.8 the WordPress Block Editor is also used to define WordPress widgets.
The use of blocks allows users to focus on how content will look without the distraction of other configuration options.
The Block Editor enables WordPress to build content layouts in much the same way as that of page builders such as Beaver Builder and Elementor.
However, it is a core part of WordPress and not a third party plugin or add-on.
ActiveMember360 Block Editor Module Overview
ActiveMember360 operates with the Block Editor without any need for the ActiveMember360 Block Editor module. All features of ActiveMember360 work with the Block Editor including shortcodes.
The ActiveMember360 Block Editor module is used solely to control the display of Block Editor blocks based upon conditions.
The ActiveMember360 Block Editor module provides an unsurpassed level of integration between ActiveCampaign and your WordPress site using the Block Editor.
It supports all Block Editor block types including static and dynamic blocks that conform to the WordPress standards.
A dynamic block contains content that may change and cannot be determined at the time of saving a post. The content is determined at the point in time that the post is shown on the front end of a site.
The Block Editor block display can be controlled by the ActiveMember360 Block Editor module based upon the following conditions:
- 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.
All of the ActiveMember360 Block Editor module settings are fully integrated into the Block Editor settings. So, if you are familiar with the Block Editor there is no additional learning curve to using the ActiveMember360 Block Editor module.
Activation
By default the ActiveMember360 Block Editor module is automatically activated.
For completeness details how to activate/deactivate the ActiveMember360 Block Editor module are detailed here:
Use Cases
In order to configure the display settings for any Block Editor block follow the steps explained here:
Set Block Editor Block Display Based Upon An ActiveMember360 Conditional
RecommendationWe would always recommend using a Conditional as it provides the greatest flexibility regarding the conditions available to control the display of the Block Editor block as detailed in ActiveMember360 Block Editor Module Overview.
Adding/defining a Conditional is detailed at Adding Conditionals.
The alternatives listed below are primarily available to provide backward compatibility for Block Editor block display controls defined prior to Conditionals being introduced.
Set Block Editor Block to Display Always or Never or Based Upon User Login Status
Set Block Editor Block Display Based Upon ActiveCampaign Contact Tag/Tags
Set Block Editor Block Display Based Upon ActiveCampaign Contact Field Value
Set Block Editor Block Display Based Upon Conditional PHP Statement
Some examples of settings are provided here: