WordPress at Your Fingertips
function is not described

WC_Webhook::is_already_processed() protected WC 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.

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

No Hooks.

Return

true|false.

Usage

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

Code of WC_Webhook::is_already_processed() WC 6.1.1

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