Skip to content

Instantly share code, notes, and snippets.

@danielbitzer
Created November 11, 2017 15:35
Show Gist options
  • Save danielbitzer/4083d41350e6f74e19880ee6339c7b8a to your computer and use it in GitHub Desktop.
Save danielbitzer/4083d41350e6f74e19880ee6339c7b8a to your computer and use it in GitHub Desktop.
AutomateWoo - Add email restriction to uniquely generated workflow coupons
<?php
// added in v3.3.3
add_filter( 'automatewoo/variables/coupons/use_email_restriction', '__return_true' );
@robwynnejones
Copy link

Does this restrict a generated coupon to an email address in the "allowed emails" field on the coupon?

@danielbitzer
Copy link
Author

Yes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment