woocommerce_webhook_deliver_async
Использование
add_filter( 'woocommerce_webhook_deliver_async', 'wp_kama_woocommerce_webhook_deliver_async_filter', 10, 3 ); /** * Function for `woocommerce_webhook_deliver_async` filter-hook. * * @param $true * @param $data_webhook * @param $data_arg * * @return */ function wp_kama_woocommerce_webhook_deliver_async_filter( $true, $data_webhook, $data_arg ){ // filter... return $true; }
- $true
- -
- $data_webhook
- -
- $data_arg
- -
Где вызывается хук
woocommerce_webhook_deliver_async
woocommerce/includes/wc-webhook-functions.php 26
if ( apply_filters( 'woocommerce_webhook_deliver_async', true, $data['webhook'], $data['arg'] ) ) {