LLMS_REST_Webhook::delivery_after( string $delivery_id, array $req_args, array $res, float $duration )
Fires after delivery
Description Description
Logs data when loggind enabled and updates state data.
Parameters Parameters
- $delivery_id
-
(Required) Webhook delivery id (for logging).
- $req_args
-
(Required) HTTP Request Arguments used to deliver the webhook.
- $res
-
(Required) Results from
wp_safe_remote_request()
. - $duration
-
(Required) Time (in microseconds) it took to generate and deliver the webhook.
Return Return
(void)
Source Source
File: libraries/lifterlms-rest/includes/models/class-llms-rest-webhook.php
Changelog Changelog
Version | Description |
---|---|
1.0.0-beta.17 | Stop setting the webhook's property pending_delivery to 0. We now rely on the method is_already_processed() to determine whether the webhook delivering should be avoided. |
1.0.0-beta.1 | Introduced. |