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.

Method of the class: StockNotification{}

No Hooks.

Returns

array{event_type: string}.

Usage

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

Changelog

Since 11.2.0 Introduced.

StockNotification::get_identity_data() code WC 11.3.0

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