wc_deliver_webhook_async( int $webhook_id, mixed $arg )

Wrapper function to execute the woocommerce_deliver_webhook_async cron.


Description Description

hook, see WC_Webhook::process().


Parameters Parameters

$webhook_id

(Required) Webhook ID to deliver.

$arg

(Required) Hook argument.


Top ↑

Source Source

File: includes/wc-webhook-functions.php

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

Top ↑

Changelog Changelog

Changelog
Version Description
2.2.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.