wc_deliver_webhook_async()
Wrapper function to execute the woocommerce_deliver_webhook_async cron. hook, see WC_Webhook::process().
No Hooks.
Return
null
. Nothing (null).
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 9.4.2
function wc_deliver_webhook_async( $webhook_id, $arg ) { $webhook = new WC_Webhook( $webhook_id ); if ( 0 === $webhook->get_id() ) { return; } $webhook->deliver( $arg ); }