Automattic\WooCommerce\Internal\PushNotifications\Notifications
Notification::to_payload
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() Notification::to payload code WC 10.8.1
abstract public function to_payload(): ?array;