-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Don't send any emails during item generation #140
Comments
Transactional emails were disabled in #58. You could add any additional email hooks to that list. |
Just wanted to add on here that I was testing with a clean Jurassic Ninja site, generating orders from the wp-admin screen. That was still triggering an email to the admin about each new order created. I'm not quite sure what hook that would be to add as it seems the order status changes is already being excluded. However I did notice that if |
This consolidates the steps that each generator class needs to take before generating objects into one `initialize` method. These steps include creating an instance of the Faker library and unhooking all the callbacks that send transactional emails. This ensures that the emails are disabled regardless of which entrypoint to Smooth Generator is used (cli or web UI). Fixes #140
The Customer generator has a method to disable emails while generating new customers/users. However, other emails can still be sent when generating products (e.g. low stock) and also potentially orders. We should probably abstract the method from the Customers class and apply it every time any generator is running.
The text was updated successfully, but these errors were encountered: