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.
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.
Copy and paste this code recipe into a helper PMPro Customizations plugin.
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.
Copy and paste this code recipe into a helper PMPro Customizations plugin.
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.
Copy and paste this code recipe into a helper PMPro Customizations plugin.
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.
Copy and paste this code recipe into a helper PMPro Customizations plugin.
Free Course: Membership Site Development—The Basics
Develop a deeper understanding of membership site development in this beginner-level course. Learn how to make your site work better, save yourself time and money, and improve your site's performance.