woocommerce_webhook_resource
Использование
add_filter( 'woocommerce_webhook_resource', 'wp_kama_woocommerce_webhook_resource_filter', 10, 2 );
/**
* Function for `woocommerce_webhook_resource` filter-hook.
*
* @param $topic[0]
* @param $id
*
* @return
*/
function wp_kama_woocommerce_webhook_resource_filter( $topic[0], $id ){
// filter...
return $topic[0];
}
- $topic[0]
- -
- $id
- -
Где вызывается хук
woocommerce_webhook_resource
woocommerce/includes/class-wc-webhook.php 1033
return apply_filters( 'woocommerce_webhook_resource', $topic[0], $this->get_id() );