Membership Logic to Enable or Disable Popups for Popular WordPress Popup Plugins

Using popups to generate more membership signups or show exclusive offers to members only can be a great addition to your membership site. But, how do you filter popups to target the RIGHT audience?


Enter the filters…

The code recipes below demonstrate how to filter popups based on the user or site visitor’s membership level. We like using this method in combination with the new Signup Shortcode Add On for a streamlined “Unlock this post now” experience.

This post covers the filter methods for Popup Maker, Popups – WordPress Popup, Popup Builder, and Optin Monster.

If you are using a different popup plugin, post a topic on our support forum (members-only) and we will help you with the filter for your setup.

Popup Maker — WordPress Repo | Plugin Homepage

When I began this post, I was looking in the WordPress plugin repository for a basic, open source popup plugin with simple styling options: enter Popup Maker.

This code recipe will filter the display of a popup using Popup Maker’s pum_popup_is_loadable filter. The recipe hides the popup if there is a logged in user with membership level ID 1. You can modify the recipe for your level IDs, or change the conditional to require level ID 1 or an array of level IDs.

This code recipe requires a PMPro Plus Account or higher.

View Membership Options


Popups – WordPress Popup — WordPress Repo | Plugin Homepage

This open source option is loaded with integrations for popular third-party form plugins and engagement tools. There are some built-in filters for the popup display cases, just not for membership level…

This code recipe will filter the display of a popup using the Popups plugin’s custom rules filter. The recipe enables the popup ONLY for a logged in user with membership level ID 1. You can modify the recipe for your level IDs, or change the conditional to hide for level ID 1 or an array of level IDs.

This code recipe requires a PMPro Plus Account or higher.

View Membership Options


Popup Builder — WordPress Repo | Plugin Homepage

This is a more bare-bones popup option, but for my testing did just what I needed it to do without hassle.

This code recipe will insert the selected popup shortcode via wp_footer throughout your site to any non-member. You can modify the recipe for your level IDs, or change the conditional to hide for level ID 1 or an array of level IDs.

This code recipe requires a PMPro Plus Account or higher.

View Membership Options


OptinMonster — Plugin Homepage

OptinMonster is more than just a popups plugin, with premium features for inserting optin forms in posts, in a floating bar, based on exit-intent and more. A paid account (starting at $49/yr) is required to use the plugin.

This code recipe will remove the optin using a script placed via the wp_footer action. The recipe hides to popup for all logged in users with any membership level. You can modify the recipe for your level IDs, or change the conditional to enable the popup for members only.

This code recipe requires a PMPro Plus Account or higher.

View Membership Options


If you are using a different popup plugin, post a topic on our support forum (members-only) and we will help you with the filter for your setup.

Membership Signup Popover Using OptinMonster with Exit Intent

We’re conducting a month-long experiment using OptinMonster and will soon be posting the real stats. Here’s how to implement your own Optin with Exit Intent linking to a membership checkout (including “PMPro Affiliate” tracking, too).

This tutorial uses the OptinMonster WordPress Plugin. OptinMonster is now a hosted platform – so I’ll post a new tutorial on using the hosted method after our experiment ends.

But first… a screenshot of my popover:

pmpro-free-optinmonster



1. Install and Activate OptinMonster WordPress Plugin

You can install the plugin directly in your WordPress Admin under Plugins > Add New > OptinMonster or download the plugin here: OptinMonster WordPress Plugin


2. Set your OptinMonster API Key

Select a package at OptinMonster to create your account and generate an API key.

Enter your API key in your site’s WordPress Admin > OptinMonster > Settings tab.


3. Install the “Exit Intent” Addon

Click the “Install Addon” button for the Exit Intent Addon in your site’s WordPress Admin > OptinMonster > Addons tab.


4. (optional) Install the Affiliates Add On for Paid Memberships Pro

If you want to track the membership checkouts generated by your new Optin, you can do so using the Lightweight Affiliate Add On for Paid Memberships Pro. Just follow the instructions on the add on documentation to install, activate, and set up an affiliate ID for your OptinMonster campaign.


5. Create Your Optin

  1. Click “Add New” under the OptinMonster > Optins tab.
  2. Choose the Theme and set up the custom Design (colors, custom CSS) for your Optin.
  3. Live edit the text of your Optin in the “preview” window. Don’t worry about adding any buttons or links in the space.
  4. Under Configuration, check the “Hide for Logged-in Users?” and “Enable Enable Exit Intent?” boxes. I kept our “Exit Intent Sensitivity” at 20 (the recommended default).
  5. Under Integration, select “Custom HTML Optin Form” for “Email provider”.
  6. Under Integration, set up your “button” link in the “Custom HTML Form Code”. Here’s the code I placed in my box:
    <a id="om-lightbox-target-optin-submit" href="https://www.paidmembershipspro.com/membership-checkout/?level=7&pa=OIM">Download for Free Now</a>

    The id=”om-lightbox-target-optin-submit” tells my button to inherit the selected “Design” submit button appearance/styling.

    The href=”https://www.paidmembershipspro.com/membership-checkout/?level=7&pa=OIM” tells my button to link to my membership checkout page for level ID 7 with the Affiliate ID “OIM” (this is the unique affiliate I set up for my Optin in step 4 above.

    Modify the code above for your unique membership checkout page URL (https protocol if the checkout is for a paid level), level ID, and affiliate ID.

  7. Under Output, make sure you check “Enable optin on site?” to turn on your new Optin. I load our Optin “globally” but you can configure additional settings for your Optin as desired.

And you’re off!

The Optin campaign is now active on your site. You’ll be able to track membership checkouts generated by your affiliate ID under the Memberships > Affiliates admin page. If you are not using the Affiliates add on, just use your Memberships > Reports page and filter by the level your Optin is driving traffic to. You’ll be able to track the membership checkouts and see what effect the new Optin is having on signups. Good luck!