Automattic\WooCommerce\Internal\PushNotifications\Dispatchers
WpcomNotificationDispatcher::failure
Builds the return value for a send that failed before or during the request.
Метод класса: WpcomNotificationDispatcher{}
Хуков нет.
Возвращает
array{success: bool, retry_after: int|null, outcome: string, invalid_tokens: string[]}.
Использование
$result = WpcomNotificationDispatcher::failure( $outcome ): array;
- $outcome(строка) (обязательный)
- One of the SendOutcome constants.
Код WpcomNotificationDispatcher::failure() WpcomNotificationDispatcher::failure WC 11.3.0
private static function failure( string $outcome ): array {
return array(
'success' => false,
'retry_after' => null,
'outcome' => $outcome,
'invalid_tokens' => array(),
);
}