Automattic\WooCommerce\Admin\Features\Fulfillments

FulfillmentsTracker::track_fulfillment_validation_error │ public static │ WC 10.7.0

Track when a fulfillment action fails due to a validation error.

Tracked from: OrderFulfillmentsRestController (create, update, and delete flows). Measures: Where users encounter errors; helps proactively identify bugs and UX problems.

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

Хуков нет.

Возвращает

void. Ничего (null).

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

$result = FulfillmentsTracker::track_fulfillment_validation_error( $action_attempted, $error_code, $source ): void;
$action_attempted(строка) (обязательный)
The action that was attempted ("create", "update", "delete", or "fulfill").
$error_code(строка) (обязательный)
The error code from the exception.
$source(строка) (обязательный)
The source of the error ("fulfillments_modal", "bulk_action", or "api").

Список изменений

С версии 10.7.0 Введена.

Код FulfillmentsTracker::track_fulfillment_validation_error() WC 11.2.2

public static function track_fulfillment_validation_error( string $action_attempted, string $error_code, string $source ): void {
	WC_Tracks::record_event(
		'fulfillment_validation_error',
		array(
			'action_attempted' => $action_attempted,
			'error_code'       => $error_code,
			'source'           => $source,
		)
	);
}