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




// 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 7.7.0

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