Skip to content

Instantly share code, notes, and snippets.

@danbitzer
Created November 11, 2017 15:35
Show Gist options
  • Select an option

  • Save danbitzer/4083d41350e6f74e19880ee6339c7b8a to your computer and use it in GitHub Desktop.

Select an option

Save danbitzer/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
Copy Markdown

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

@danbitzer

Copy link
Copy Markdown
Author

Yes

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