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?

Tyl by NatWest

Don't already have the plugin? Get access now.

Still need help?

Our team are on hand to provide fast, helpful and professional support.

Support request
All systems operational

Back End Demo

Start exploring our fully functional demo site today.
Gain exclusive admin access to see what's possible.

Create your demo now

Front End Demo

Test drive our plugin on the demo site.

View Demo