Created
April 4, 2017 15:03
-
-
Save mklasen/afb7182179e95c92a1b153437c596974 to your computer and use it in GitHub Desktop.
Remove Quantity field from Woocommerce
This file contains hidden or 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
<?php | |
// https://github.com/woocommerce/woocommerce/issues/424#issuecomment-8586651 | |
add_filter( 'woocommerce_is_sold_individually', 'wc_remove_all_quantity_fields', 10, 2 ); | |
function wc_remove_all_quantity_fields( $return, $product ) { | |
return( true ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment