Created
October 27, 2021 15:48
-
-
Save Rafo1994/d0205bcffed7a187c71921502f72994d to your computer and use it in GitHub Desktop.
Adjust generate coupon length for AutomateWoo
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
//Add this code to functions.php - this code changes lenght of coupons generated | |
//only by customer.generate_coupon variable in AutomateWoo | |
add_filter( 'automatewoo/coupon_generator/key_length', function(){ | |
return 3; //Change this number to any number you like | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment