wc_deliver_webhook_async()WC 2.2.0

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() code WC 8.6.1

function wc_deliver_webhook_async( $webhook_id, $arg ) {
	$webhook = new WC_Webhook( $webhook_id );
	$webhook->deliver( $arg );
}