Automattic\WooCommerce\Internal\PushNotifications\Services
NotificationStepLogger::get_notification_source
Builds the log source for a notification type.
Метод класса: NotificationStepLogger{}
Хуков нет.
Возвращает
string.
Использование
$result = NotificationStepLogger::get_notification_source( $notification ): string;
- $notification(Notification) (обязательный)
- The notification.
Список изменений
| С версии 11.3.0 | Введена. |
Код NotificationStepLogger::get_notification_source() NotificationStepLogger::get notification source WC 11.3.0
public static function get_notification_source( Notification $notification ): string {
return self::get_notification_source_for_type( $notification->get_type() );
}