how to Disable adsense if logged in to wp?

Discussion in 'WordPress' started by DomainMagnate, Jan 13, 2014.

  1. #1
    Anyone knows how to disable adsense when a writer is logged in to wp to prevent occasional clicks?
     
    DomainMagnate, Jan 13, 2014 IP
  2. Nigel Lew

    Nigel Lew Notable Member

    Messages:
    4,642
    Likes Received:
    406
    Best Answers:
    21
    Trophy Points:
    295
    #2
    Nigel Lew, Jan 13, 2014 IP
  3. Nigel Lew

    Nigel Lew Notable Member

    Messages:
    4,642
    Likes Received:
    406
    Best Answers:
    21
    Trophy Points:
    295
    #3
    Nigel Lew, Jan 13, 2014 IP
  4. Sensei.Design

    Sensei.Design Prominent Member

    Messages:
    3,847
    Likes Received:
    162
    Best Answers:
    0
    Trophy Points:
    310
    Digital Goods:
    1
    #4
    You can do it without a plugin Michael. All you need to do is use the is_user_logged_in() snippet and a if function around the ad block.
     
    Sensei.Design, Jan 13, 2014 IP
    Nigel Lew likes this.
  5. Nigel Lew

    Nigel Lew Notable Member

    Messages:
    4,642
    Likes Received:
    406
    Best Answers:
    21
    Trophy Points:
    295
    #5
    I agree completely. That is the cleaner way to do things.
    Nigel
     
    Nigel Lew, Jan 13, 2014 IP