WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm looking for a way to disable the "link to full-size image" for people that are not logged in. I would like that people become a subscriber before they can download my full size images.

Is this possible?

share|improve this question

Sure it is... its a 3 step process..

  1. Check if user is logged in
  2. return check and create an if condition
  3. return the BIG image link or not at all (right?)

The code (not check for user level since subscriber is the lowest level)

if ( is_user_logged_in() ) {
    echo '<a href=""><img src="LINK TO BIG PICTURE"></a>';
} else {
    echo 'Only Subscribers can view the link to the full image. Register Today!';

Hope this helps.
Cheers, Sagive.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.