WooCommerce: Webhook disabled on its own

I’m developing an order management system that hooks into WooCommerce but the Webhook behaves irregularly. The Webhook gets disabled on its own.

I’ve investigated with the users – none of them have privileges. The administrator hasn’t touched this section and hasn’t updated any of the plugins.

Are there any reasons this would happen? Maybe returning http errors from my side?

WordPress: 4.4.1
WooCommerce: 2.3.8

3 s

If you don’t want to fix this every time WooCommerce updates, just create a filter in your child-theme:

function overrule_webhook_disable_limit( $number ) {
    return 999999999999; //very high number hopefully you'll never reach.
add_filter( 'woocommerce_max_webhook_delivery_failures', 'overrule_webhook_disable_limit' );

Leave a Comment