Documentation

Define | Add delay to webhook

Warning

We’ve put this guide together as a little helping hand for developers and designers. You’ll need a basic understanding of PHP to make the most of it.

Just a quick heads-up, we can’t provide support for custom code or offer any bespoke tweaks. Think of the snippets below as examples to guide you in the right direction.

Description

The “ag_webhook_delay” setting in the AG plugin allows you to set a delay for webhook notifications from Tyl, which update your website with order statuses. This setting is particularly useful if your system is recording multiple notes for a single order, suggesting that updates are being processed too quickly. By adjusting the delay, you provide your system with sufficient time to handle updates one at a time, preventing server overload and ensuring accurate order tracking.

PHP
1
define('ag_webhook_delay', TRUE);

For a hassle-free experience, we suggest using a third-party plugin like Code Snippets to add this code. It’s a smoother alternative to diving into your theme’s function.php file.

Was this helpful?