WC_Webhook::is_already_processedprotectedWC 1.0

Checks if the specified resource has already been queued for delivery within the current request.

Helps avoid duplication of data being sent for topics that have more than one hook defined.

Method of the class: WC_Webhook{}

No Hooks.

Returns

true|false.

Usage

// protected - for code of main (parent) or child class
$result = $this->is_already_processed( $arg );
$arg(mixed) (required)
First hook argument.

WC_Webhook::is_already_processed() code WC 10.6.2

protected function is_already_processed( $arg ) {
	return false !== array_search( $arg, $this->processed, true );
}