Forked from plugin-republic/prefix_reset_table_quantity.php
Created
July 20, 2021 16:35
-
-
Save tamara-m/4f041b954dc8586df6afd1fb8d1296b1 to your computer and use it in GitHub Desktop.
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
<?php | |
function prefix_reset_table_quantity( $args, $product ) { | |
$args['input_value'] = 1; | |
return $args; | |
} | |
add_filter( 'woocommerce_quantity_input_args', 'prefix_reset_table_quantity', 10, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment