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.

Method of the class: StockNotification{}

No Hooks.

Returns

null. Nothing (null).

Usage

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

StockNotification::get_identifier() code 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()
	);
}