woocommerce_webhook_enable_delivery_log │ filter-hook │ WC 11.1.0

Filter to disable webhook delivery logging.

Usage

add_filter( 'woocommerce_webhook_enable_delivery_log', 'wp_kama_woocommerce_webhook_enable_delivery_log_filter', 10, 2 );

/**
 * Function for `woocommerce_webhook_enable_delivery_log` filter-hook.
 * 
 * @param bool $enable_logging Whether to log the delivery.
 * @param int  $webhook_id     The webhook ID.
 *
 * @return bool
 */
function wp_kama_woocommerce_webhook_enable_delivery_log_filter( $enable_logging, $webhook_id ){
	// filter...
	return $enable_logging;
}
$enable_logging(true|false)
Whether to log the delivery.
Default: true
$webhook_id(int)
The webhook ID.

Changelog

Since 11.1.0 Introduced.

Where the hook is called

WC_Webhook::log_delivery()
woocommerce_webhook_enable_delivery_log
woocommerce/includes/class-wc-webhook.php 563
$enable_logging = apply_filters( 'woocommerce_webhook_enable_delivery_log', true, $this->get_id() );

Where the hook is used in WooCommerce

Usage not found.