WC_Webhook::set_failure_count()publicWC 3.2.0

Set failure count.

Method of the class: WC_Webhook{}

No Hooks.

Return

null. Nothing (null).

Usage

$WC_Webhook = new WC_Webhook();
$WC_Webhook->set_failure_count( $failure_count );
$failure_count(true|false) (required)
Total of failures.

Changelog

Since 3.2.0 Introduced.

WC_Webhook::set_failure_count() code WC 9.8.1

public function set_failure_count( $failure_count ) {
	$this->set_prop( 'failure_count', intval( $failure_count ) );
}