Skip to content

Instantly share code, notes, and snippets.

@om4james
Last active April 30, 2021 06:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save om4james/43412979871700a23186fb9bc325680b to your computer and use it in GitHub Desktop.
Save om4james/43412979871700a23186fb9bc325680b to your computer and use it in GitHub Desktop.
WooCommerce Zapier send data immediately (rather than asynchronously)
<?php
/*
The following code will tell the WooCommerce Zapier extension (v1.7.x - 1.9.x) to send data to
Zapier immediately, rather than sending the data asynchronously via WordPress cron.
Save this file as wczaper.php and place it in your wp-content/mu-plugins/ directory.
This snippet does not apply for WooCommerce Zapier version 2.0+, which uses WooCommerce core's webhook devliery mechanism instead.
*/
add_filter( 'wc_zapier_send_asynchronously', '__return_false' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment