Skip to content

Instantly share code, notes, and snippets.

@SeanTOSCD
Created August 29, 2017 13:38
Show Gist options
  • Save SeanTOSCD/9163050dba049dd16ec191e75bb6bdd8 to your computer and use it in GitHub Desktop.
Save SeanTOSCD/9163050dba049dd16ec191e75bb6bdd8 to your computer and use it in GitHub Desktop.
EDD hide quantity field on purchase form only
<?php // DO NOT COPY THIS LINE
function sd_remove_purchase_form_qty( $output ) {
$output = '';
return $output;
}
add_filter( 'edd_purchase_form_quantity_input', 'sd_remove_purchase_form_qty' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment