Skip to content

Instantly share code, notes, and snippets.

@kloon
Created December 18, 2012 09:46
Show Gist options
  • Save kloon/4326708 to your computer and use it in GitHub Desktop.
Save kloon/4326708 to your computer and use it in GitHub Desktop.
WooCommerce Remove Quantity from Product Page
add_filter( 'woocommerce_is_sold_individually', 'wc_remove_all_quantity_fields', 10, 2 );
function wc_remove_all_quantity_fields( $return, $product ) {
if ( is_product() )
return true;
else return $return;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment