Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jasperf/740543ebc726a80dbbee859f18f3b144 to your computer and use it in GitHub Desktop.
Save jasperf/740543ebc726a80dbbee859f18f3b144 to your computer and use it in GitHub Desktop.
This will turn on deferred transactional emails in WooCommerce. This may help if you are experiencing slow checkouts or checkout timeouts.
<?php // Do not copy this line
/**
* This will turn on deferred transactional emails in WooCommerce. This may help if you
* are experiencing slow checkouts or checkout timeouts.
*/
add_filter( 'woocommerce_defer_transactional_emails', '__return_true' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment