How to Protect Gutenberg Blocks with ActiveCampaign Tags Using Memberium for ActiveCampaign

Memberium — 


If you’re using the Gutenberg block editor in WordPress, you can now protect individual blocks using Memberium. This enables you to show/hide parts of the page depending on what tags your users have in ActiveCampaign.

In this post, we’ll show you how to protect your individual Gutenberg blocks using Memberium for ActiveCampaign.

Use Cases

Before we dive in, let’s take a look at a few use cases that you may be able to relate to. Simply put, you can use our integration anytime you want to show different content to different users on the same page. Here are some examples

  • Upgrade Offers/Buttons: Only show upgrade offers or buttons to users that are relevant. You wouldn’t want to show an upgrade offer to a user that already has that membership or product.
  • Failed Payment Warnings: You can show users a message if their last payment has failed. This could be used on a membership homepage for example. You’d need to have your payment/cart system apply a tag saying the payment failed for this to work.
  • Bonus Content: Sell bonus videos or content in your membership/course. Show these videos on the same page as the regular content, but only allow the people that purchased it to view it.


Open a page you’re editing with Gutenberg and click on a block you want to protect. On the right-hand side of the screen, you’ll see the settings for that block. Scroll down until you see the “Memberium” section as pictured below.

You’ll see several options for protecting your content. Let’s go through the different options together.

Any Membership Level

This option will automatically activate all of your membership levels. This means that if a user has any of your memberships they’ll be able to see the content. For instance, if you have 3 membership levels, bronze, silver, or gold, then a user would need just a single one of those to see the content.

Your Different Membership Levels

The options you’ll see in this section depend on what membership levels you’ve set up in Memberium. For example, if you have the following two memberships setup then you’ll see this in the Memberium protection options:

Two Memberships in Memberium

Membership Levels in Gutenberg

You can individually turn a membership level on or off. If the membership is on, then users with that membership will be able to see the content. If it’s off, then users that have that membership won’t be granted access. It’s important to note that if a user has two memberships, one that gives access and one that doesn’t give access, the one that gives access will take effect.

Any Logged In User

Enabling this option will allow any user that’s logged into the site to see the protected content. There are no dependencies on tags, membership levels, etc.

Logged Out Only

This option is very similar to the one above except it works in the opposite way. Only logged out users will be able to see the protected content with this enabled. This is useful for protecting login forms or other content that wouldn’t apply to someone who is logged into the site.

Require Tag IDs

The Require Tag IDs option allows you to select from your ActiveCampaign tags one or more tags required for access. If you select multiple tags, the user does NOT need to have all of them – only one of them. For instance, if you select Gold and Silver, the user could see the content by just having the Silver tag.

In addition, you’ll see all your tags have a “Does Not Have {tag name}” option. This allows you to require users don’t have a certain tag to see a particular module/content block.

“Does Not Have” Tags

AND Require Tag IDs

This box works exactly the same as the previous option (Require Tag IDs) except that it allows you to require the user to have a second tag in addition to the tag in the first box. To better explain how this works, please see the image below and we’ll explain what would be required to see the protected content:

Multiple Require Tag IDs

In this case, the user would need one tag from the top box (Green or Red) AND they would need one tag from the bottom box (Gold or Platinum). The important thing to remember is that users will need a single tag from each box in order to access the content. Sometimes we have customers think it’s one tag from the top plus ALL tags from the bottom, but that’s not how it truly works.

PHP Boolean Expression

Lastly, we have the PHP Boolean Expression. This option allows you to input true/false PHP functions (Booleans) that can control the visibility of your content. Most of our users won’t need to use this feature as the previously covered options will more than satisfy their content protection needs.

  • Was this Helpful ?
  • YesNo