Automattic\WooCommerce\Internal\PushNotifications\Services

NotificationStepLogger::format_message │ private static │ WC 1.0

Builds the human-readable message for a line. Readers filter on the context fields, never on this text.

Метод класса: NotificationStepLogger{}

Хуков нет.

Возвращает

string.

Использование

$result = NotificationStepLogger::format_message( $step, $outcome ): string;
$step(строка) (обязательный)
Machine-readable step name.
$outcome(строка) (обязательный)
Machine-readable outcome.

Код NotificationStepLogger::format_message() WC 11.3.0

private static function format_message( string $step, string $outcome ): string {
	return sprintf( '%s: %s', ucfirst( str_replace( '_', ' ', $step ) ), str_replace( '_', ' ', $outcome ) );
}