Created
January 18, 2016 11:57
-
-
Save wp-kitten/7d03535ccefa4e8ebea0 to your computer and use it in GitHub Desktop.
WooCommerce: Override the add to cart quantity
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
| 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