Hide ads using our plugin
Ad platform settings are available in the Memberful settings in WordPress. To access them:- Go to WordPress → Settings → Memberful.
- Open the Hide ads tab.

Enable an ad platform
Each supported ad platform (Raptive, MediaVine, and Advanced Ads) appears in the list when our WordPress plugin is installed. If a platform plugin is not installed, it will appear as (not installed). Once the ad platform plugin is installed, click the platform checkbox to enable it. Enabling a platform makes its suppression settings available. Ads are not disabled until you select at least one suppression option.
Choose when ads are disabled
After enabling a platform, choose when ads should be disabled. You can select one or more of the following options.Disable ads for members with an active subscription to a specific plan
Disable ads only for members who have an active subscription to one or more selected plans. To configure this option, select one or more plans from the list.
Disable ads for any member with an active subscription
Disable ads for all members who have at least one active subscription, regardless of plan.
Disable ads for all logged-in users
Disable ads for all logged-in users, regardless of subscription status (active, inactive, or free), role, or plan.
How precedence works
When multiple suppression options are selected, broader rules override more specific ones. Precedence order:- Disable ads for all logged-in users
- Disable ads for any member with an active subscription
- Disable ads for members with an active subscription to a specific plan
If you enable “Disable ads for all logged-in users” or “Disable ads for any member with an active subscription,” those settings override any plan-specific selections.
Save your changes
After configuring your ad settings, click Save Changes to apply them. Changes take effect immediately for visitors who meet the selected conditions.
Hide ads using WP functions
Another way to hide ads for paying members is to leverage Memberful’s WordPress functions to add an HTML/CSS class to the page, which would determine whether the ads should be displayed or not. First, we’ll use our WP functionis_subscribed_to_any_memberful_plan() to determine whether or not a user is a paying member.
If they are, use the body_class filter to add a custom class to the page’s <body> tag. The following snippet can be added to your theme’s functions, either by inserting it into the functions.php file or by using a code snippets plugin with the capability to add new WordPress functions.
active-memberful-member class is added to the page’s <body> tag whenever the current user is subscribed to any plan.
You can then use CSS to hide any ads if that class is present.
ad class, but you can adjust the selector to match your specific ad implementation.