Forked from stuartduff/remove-wocommerce-product-quantity-fields.php
Created
September 7, 2017 14:56
-
-
Save lukecav/a8213a51081f0d598d009f3754ccade1 to your computer and use it in GitHub Desktop.
Remove WooCommerce product quantity fields
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
| /** | |
| * @desc Remove in all product type quantity fields | |
| */ | |
| function wc_remove_all_quantity_fields( $return, $product ) { | |
| return true; | |
| } | |
| add_filter( 'woocommerce_is_sold_individually', 'wc_remove_all_quantity_fields', 10, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment