Skip to content

Instantly share code, notes, and snippets.

@om4james
Last active April 30, 2021 06:38
Show Gist options
  • Save om4james/512b511d90b9fc0f33fad2fe99a50d8f to your computer and use it in GitHub Desktop.
Save om4james/512b511d90b9fc0f33fad2fe99a50d8f to your computer and use it in GitHub Desktop.
WooCommerce Zapier send data asynchronously (rather than immediately)
<?php
/*
The following code will tell the WooCommerce Zapier extension (v1.7.x - v1.9.x) to send data to
Zapier asynchronously via WordPress cron, rather than sending the data immediately.
This snippet does not apply for WooCommerce Zapier version 2.0+, which uses WooCommerce core's webhook devliery mechanism instead.
Please note that we only suggest doing this if your WP-Cron facility is working reliably.
Save this file as wczaper.php and place it in your wp-content/mu-plugins/ directory.
*/
add_filter( 'wc_zapier_send_asynchronously', '__return_true' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment