Automattic\WooCommerce\Internal\PushNotifications\Notifications

StockNotification::get_identity_data │ public │ WC 11.2.0

{@inheritDoc}

Without the event type, a rebuilt stock notification falls back to the constructor's low_stock default and reads and writes another event's delivery state.

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

Хуков нет.

Возвращает

array{event_type: string}.

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

$StockNotification = new StockNotification();
$StockNotification->get_identity_data(): array;

Список изменений

С версии 11.2.0 Введена.

Код StockNotification::get_identity_data() WC 11.3.0

public function get_identity_data(): array {
	return array( 'event_type' => $this->event_type );
}