woocommerce_max_webhook_delivery_failures
Использование
add_filter( 'woocommerce_max_webhook_delivery_failures', 'wp_kama_woocommerce_max_webhook_delivery_failures_filter' ); /** * Function for `woocommerce_max_webhook_delivery_failures` filter-hook. * * @param $5 * * @return */ function wp_kama_woocommerce_max_webhook_delivery_failures_filter( $5 ){ // filter... return $5; }
- $5
- -
Где вызывается хук
woocommerce_max_webhook_delivery_failures
woocommerce/includes/class-wc-webhook.php 555
if ( $failures > apply_filters( 'woocommerce_max_webhook_delivery_failures', 5 ) ) {