woocommerce_webhook_should_deliver хук-фильтр . WC 1.0
Let other plugins intercept deliver for some messages queue like rabbit/zeromq.
Использование
add_filter( 'woocommerce_webhook_should_deliver', 'filter_function_name_6910', 10, 3 ); function filter_function_name_6910( $should_deliver, $this, $arg ){ // filter... return $should_deliver; }
- $should_deliver(true|false)
- True if the webhook should be sent, or false to not send it.
- $this(WC_Webhook)
- The current webhook class.
- $arg(разное)
- First hook argument.
Где вызывается хук
woocommerce_webhook_should_deliver
woocommerce/includes/class-wc-webhook.php 149
return apply_filters( 'woocommerce_webhook_should_deliver', $should_deliver, $this, $arg );