woocommerce_webhook_event
Usage
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
- -
Where the hook is called
woocommerce_webhook_event
woocommerce/includes/class-wc-webhook.php 1045
return apply_filters( 'woocommerce_webhook_event', isset( $topic[1] ) ? $topic[1] : '', $this->get_id() );