WordPress at Your Fingertips
function is not described

WC_Webhook::set_failure_count() public WC 3.2.0

Set failure count.

{} It's a method of the class: WC_Webhook{}

No Hooks.

Return

null. Nothing.

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.

Code of WC_Webhook::set_failure_count() WC 6.1.1

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