Title: Code No Longer Working
Last modified: July 22, 2022

---

# Code No Longer Working

 *  Resolved [johnboy85](https://wordpress.org/support/users/johnboy85/)
 * (@johnboy85)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/code-no-longer-working/)
 * I was using the following code snippet which worked great to trigger Woocommerce
   webhooks immediately.
 * function custom_woocommerce_disable_async_webhook() {
    return false; } add_filter(‘
   woocommerce_webhook_deliver_async’, ‘custom_woocommerce_disable_async_webhook’);
 * I had customers contact me today saying it was no longer working. Did your recent
   update cause this snippet to no longer work?

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Shea Bunge](https://wordpress.org/support/users/bungeshea/)
 * (@bungeshea)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/code-no-longer-working/#post-15849075)
 * It’s more likely that something changed in WooCommerce. I’d recommend checking
   in a WooCommerce-specific forum.
 *  Thread Starter [johnboy85](https://wordpress.org/support/users/johnboy85/)
 * (@johnboy85)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/code-no-longer-working/#post-15851191)
 * I reverted back to the previous version of the plugin 3.1.1. Removed the code
   snippet and then added it again. Everything started to work as normal. So I updated
   the plugin back to the currect version 3.2.0 and tested it again. Everything 
   works fine now…
 * It seems the update is causing an issue with code snippets. The fix seems to 
   be to remove the snippets and re-add them. This fixed the problem for me at least.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Code No Longer Working’ is closed to new replies.

 * ![](https://ps.w.org/code-snippets/assets/icon.svg?rev=2148878)
 * [Code Snippets](https://wordpress.org/plugins/code-snippets/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/code-snippets/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/code-snippets/)
 * [Active Topics](https://wordpress.org/support/plugin/code-snippets/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/code-snippets/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/code-snippets/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [johnboy85](https://wordpress.org/support/users/johnboy85/)
 * Last activity: [3 years, 8 months ago](https://wordpress.org/support/topic/code-no-longer-working/#post-15851191)
 * Status: resolved