Automattic\WooCommerce\Internal\PushNotifications\Notifications

StockNotification::get_identifierpublicWC 1.0

{@inheritDoc}

Includes event_type so the same product can have distinct notifications for different stock events in-flight simultaneously.

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

Хуков нет.

Возвращает

null. Ничего (null).

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

$StockNotification = new StockNotification();
$StockNotification->get_identifier(): string;

Код StockNotification::get_identifier() WC 10.9.1

public function get_identifier(): string {
	return sprintf(
		'%s_%s_%s_%s',
		get_current_blog_id(),
		$this->get_type(),
		$this->event_type,
		$this->get_resource_id()
	);
}