Automattic\WooCommerce\Internal\PushNotifications\Notifications

StockNotification::meta_key │ private │ WC 11.2.0

Scopes a delivery state meta key to this notification's stock event.

The same product can have low_stock, out_of_stock and on_backorder notifications in flight at once, so each event type needs its own claimed, sent and triggered markers.

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

Хуков нет.

Возвращает

string.

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

// private - только в коде основоного (родительского) класса
$result = $this->meta_key( $key ): string;
$key(строка) (обязательный)
The unscoped meta key.

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

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

Код StockNotification::meta_key() WC 11.3.0

private function meta_key( string $key ): string {
	return $key . '_' . $this->event_type;
}