woocommerce_webhook_event хук-фильтр . WC 1.0
Использование
add_filter( 'woocommerce_webhook_event', 'filter_function_name_9223', 10, 2 ); function filter_function_name_9223( $topic[1], $id ){ // filter... return $topic[1]; }
- $topic[1]
- -
- $id
- -
Где вызывается хук
woocommerce_webhook_event
woocommerce/includes/class-wc-webhook.php 1059
return apply_filters( 'woocommerce_webhook_event', isset( $topic[1] ) ? $topic[1] : '', $this->get_id() );