Skip to content

Instantly share code, notes, and snippets.

@pippinsplugins
Created January 15, 2013 03:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pippinsplugins/4535753 to your computer and use it in GitHub Desktop.
Save pippinsplugins/4535753 to your computer and use it in GitHub Desktop.
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 );
@abrownmedia
Copy link

Where do I copy/paste this code so that it applies to my entire store?
Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment