If you use ads as a way to monetize your site, you can optionally wrap the ad block with a built-in PHP function in order to hide or customize those ads to site members. This can be a unique value offering for users interested in having an ad-free or more ad-targeted experience on your site!

Here is a brief code sample showing how to hide an ad block for members:

if(pmpro_displayAds())
{    
    //insert ad code here
}

PMPro will automatically hide ads inserted with the Easy Adsense plugin if you enable the “hide ads from members” advanced option.

For more information about this feature, search the PMP support forums.

Calling All Ad Plugin Publishers and Users!

If you are a WordPress ad management plugin publisher interested in building this feature directly into your plugin, please contact us!

Ready to Get Paid? Get Paid Memberships Pro Now

Or download the full Paid Memberships Pro plugin for free.

GPL v2