Created
January 15, 2013 03:17
-
-
Save pippinsplugins/4535753 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function pw_edd_hide_purchase_link( $form, $args ) { | |
global $user_ID; | |
if( edd_has_user_purchased( $user_ID, $args['download_id'] ) ) | |
return ''; | |
else | |
return $form; | |
} | |
add_filter( 'edd_purchase_download_form', 'pw_edd_hide_purchase_link', 10, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Where do I copy/paste this code so that it applies to my entire store?
Thanks.