Automattic\WooCommerce\Internal\PushNotifications\Notifications

Notification::get_identifierpublicWC 10.7.0

Returns a unique identifier for this notification, used for deduplication.

Method of the class: Notification{}

No Hooks.

Returns

String.

Usage

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

Changelog

Since 10.7.0 Introduced.

Notification::get_identifier() code WC 10.7.0

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