Created
May 28, 2024 10:28
-
-
Save shameemreza/32eca21a484ee953710d745308b7f77b to your computer and use it in GitHub Desktop.
Remove the quantity field for ALL of your WooCommerce products
This file contains 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
function custom_remove_all_quantity_fields( $return, $product ) { | |
return true; | |
} | |
add_filter ( 'woocommerce_is_sold_individually','custom_remove_all_quantity_fields', 10, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment