WC_Webhook::get_failure_count()publicWC 2.2.0

Get the failure count.

Method of the class: WC_Webhook{}

No Hooks.

Return

Int.

Usage

$WC_Webhook = new WC_Webhook();
$WC_Webhook->get_failure_count( $context );
$context(string)
What the value is for. Valid values are 'view' and 'edit'.
Default: 'view'

Changelog

Since 2.2.0 Introduced.

WC_Webhook::get_failure_count() code WC 8.7.0

public function get_failure_count( $context = 'view' ) {
	return $this->get_prop( 'failure_count', $context );
}