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

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

add_filter( 'woocommerce_webhook_event', 'wp_kama_woocommerce_webhook_event_filter', 10, 2 );

/**
 * Function for `woocommerce_webhook_event` filter-hook.
 * 
 * @param  $topic[1] 
 * @param  $id       
 *
 * @return 
 */
function wp_kama_woocommerce_webhook_event_filter( $topic[1], $id ){

	// filter...
	return $topic[1];
}
$topic[1]
-
$id
-

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

WC_Webhook::get_event()
woocommerce_webhook_event
woocommerce/includes/class-wc-webhook.php 1066
return apply_filters( 'woocommerce_webhook_event', isset( $topic[1] ) ? $topic[1] : '', $this->get_id() );

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

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