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.5.1

do_action('woocommerce_webhook_disabled_due_delivery_failures') is found 1 times:

  • /includes/class-wc-webhook.php line 558
     
    		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();