Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save tamara-m/4f041b954dc8586df6afd1fb8d1296b1 to your computer and use it in GitHub Desktop.
Save tamara-m/4f041b954dc8586df6afd1fb8d1296b1 to your computer and use it in GitHub Desktop.
<?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