woocommerce_webhook_disabled_due_delivery_failures

woocommerce_webhook_disabled_due_delivery_failures

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

do_action('woocommerce_webhook_disabled_due_delivery_failures') is found 1 times:

  • /includes/class-wc-webhook.php line 559
    556
    557
    558
    559
    560
    561
    562
    563
    564
    565
    if ( $failures > apply_filters( 'woocommerce_max_webhook_delivery_failures', 5 ) ) {
        $this->set_status( 'disabled' );
     
        do_action( 'woocommerce_webhook_disabled_due_delivery_failures', $this->get_id() );
    } else {
        $this->set_failure_count( ++$failures );
    }
     
    if ( 0 !== $this->get_id() ) {
        $this->save();