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.

Метод класса: WC_Webhook{}

Хуков нет.

Возвращает

true|false.

Использование

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->is_already_processed( $arg );
$arg(разное) (обязательный)
First hook argument.

Код WC_Webhook::is_already_processed() WC 8.7.0

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