WC_Webhook::is_already_processed()
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.
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.
WC_Webhook::is_already_processed() WC Webhook::is already processed code WC 9.7.1
protected function is_already_processed( $arg ) { return false !== array_search( $arg, $this->processed, true ); }