Skip to content

Instantly share code, notes, and snippets.

@danielbitzer
Last active September 14, 2022 11:21
Show Gist options
  • Save danielbitzer/74ed836fe3e1dddd8dff875ca79d6d4a to your computer and use it in GitHub Desktop.
Save danielbitzer/74ed836fe3e1dddd8dff875ca79d6d4a to your computer and use it in GitHub Desktop.
AutomateWoo - Change workflow generated coupon lengths
<?php
// The length doesn't include the specified coupon prefix
add_filter( 'automatewoo/coupon_generator/key_length', function() {
return 8;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment