woocommerce_webhook_event
Get the event for the webhook, e.g. created.
Использование
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
- -
Список изменений
С версии 2.2.0 | Введена. |
Где вызывается хук
woocommerce_webhook_event
woocommerce/includes/class-wc-webhook.php 1060
return apply_filters( 'woocommerce_webhook_event', isset( $topic[1] ) ? $topic[1] : '', $this->get_id() );