Automattic\WooCommerce\Internal\PushNotifications\Notifications

Notification::to_payloadpublicWC 10.7.0

Returns the WPCOM-ready payload for this notification.

Returns null if the underlying resource no longer exists.

Method of the class: Notification{}

No Hooks.

Returns

Array|null.

Usage

$Notification = new Notification();
$Notification->to_payload(): ?array;

Changelog

Since 10.7.0 Introduced.

Notification::to_payload() code WC 10.8.1

abstract public function to_payload(): ?array;