LLMS_REST_Webhook::process_hook( mixed $args )
Processes information from the origination action hook
Description Description
Determines if the webhook should be delivered and whether or not it should be scheduled or delivered immediately.
Parameters Parameters
- $args
-
(Required) Arguments from the hook.
Return Return
(int|false) Timestamp of the scheduled event when the webhook is successfully scheduled. false if the webhook should not be delivered or has already been delivered in the last 5 minutes.
Source Source
File: libraries/lifterlms-rest/includes/models/class-llms-rest-webhook.php
Changelog Changelog
Version | Description |
---|---|
1.0.0-beta.17 | Mark this hook's first argument as processed to ensure it doesn't get processed again within the current request. And don't rely anymore on the webhook's pending_delivery property to achieve the same goal. |
1.0.0-beta.1 | Introduced. |