Automattic\WooCommerce\Internal\PushNotifications\Notifications
StockNotification::get_identifier
{@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() 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()
);
}