woocommerce_webhook_deliver_async хук-фильтрWC 1.0

Webhooks are processed in the background by default so as to avoid delays or failures in delivery from affecting the user who triggered it.

Использование

add_filter( 'woocommerce_webhook_deliver_async', 'wp_kama_woocommerce_webhook_deliver_async_filter', 10, 3 );

/**
 * Function for `woocommerce_webhook_deliver_async` filter-hook.
 * 
 * @param  $true         
 * @param  $data_webhook 
 * @param  $data_arg     
 *
 * @return 
 */
function wp_kama_woocommerce_webhook_deliver_async_filter( $true, $data_webhook, $data_arg ){

	// filter...
	return $true;
}
$true
-
$data_webhook
-
$data_arg
-

Где вызывается хук

wc_webhook_execute_queue()
woocommerce_webhook_deliver_async
woocommerce/includes/wc-webhook-functions.php 26
if ( apply_filters( 'woocommerce_webhook_deliver_async', true, $data['webhook'], $data['arg'] ) ) {

Где используется хук в WooCommerce

Использование не найдено.