How to hide Adsense to logged in users?


Regular Member
Dec 19, 2014
Hello everyone,

It's good to be back, it's been a while since I posted here, hope everyone is doing good,

I would like to know if there's any piece of code missing here,

I would like to hide AdSense auto-ads for logged in users,

But every time I try to wrap Adsense code on this PMPro code they provide, I got an error message on Snippets, and doesn't work at all,

Here's PMPro code:

if ( function_exists( 'pmpro_displayAds' ) && pmpro_displayAds() ) { //insert ad code here }

Can somebody give me a hand here please, I really appreciate :)
AdBlock Detected

We get it, advertisements are annoying!

Sure, ad-blocking software does a great job at blocking ads, but it also blocks useful features and essential functions on BlackHatWorld and other forums. These functions are unrelated to ads, such as internal links and images. For the best site experience please disable your AdBlocker.

I've Disabled AdBlock