Last active
April 30, 2021 06:38
-
-
Save thejamescollins/512b511d90b9fc0f33fad2fe99a50d8f to your computer and use it in GitHub Desktop.
WooCommerce Zapier send data asynchronously (rather than immediately)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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