Skip to content

Instantly share code, notes, and snippets.

@wp-kitten
Created January 18, 2016 11:57
Show Gist options
  • Select an option

  • Save wp-kitten/7d03535ccefa4e8ebea0 to your computer and use it in GitHub Desktop.

Select an option

Save wp-kitten/7d03535ccefa4e8ebea0 to your computer and use it in GitHub Desktop.
WooCommerce: Override the add to cart quantity
add_filter('woocommerce_quantity_input_step', 'wpk_custom_quantity_input_step', 99, 1);
function wpk_custom_quantity_input_step(){
// Return the incrementing step here
return 5;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment