wc_deliver_webhook_async()
Wrapper function to execute the woocommerce_deliver_webhook_async cron. hook, see WC_Webhook::process().
No Hooks.
Return
null
. Nothing.
Usage
wc_deliver_webhook_async( $webhook_id, $arg );
- $webhook_id(int) (required)
- Webhook ID to deliver.
- $arg(mixed) (required)
- Hook argument.
Changelog
Since 2.2.0 | Introduced. |
wc_deliver_webhook_async() wc deliver webhook async code WC 7.7.0
function wc_deliver_webhook_async( $webhook_id, $arg ) { $webhook = new WC_Webhook( $webhook_id ); $webhook->deliver( $arg ); }