Automattic\WooCommerce\Internal\Admin\Settings\PaymentsProviders\WooPayments

WooPaymentsService::was_onboarding_step_completed_via_skip │ private │ WC 1.0

Check if an onboarding step was marked as completed by being skipped forward.

This means the step's completion does not reflect actual completion but a deliberate decision to let onboarding proceed despite the step's action not succeeding (e.g. a non-recoverable test account initialization failure).

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

Хуков нет.

Возвращает

bool. Whether the onboarding step was completed by being skipped forward.

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

// private - только в коде основоного (родительского) класса
$result = $this->was_onboarding_step_completed_via_skip( $step_id, $location ): bool;
$step_id(строка) (обязательный)
The ID of the onboarding step.
$location(строка) (обязательный)
The location for which we are onboarding. This is an ISO 3166-1 alpha-2 country code.

Код WooPaymentsService::was_onboarding_step_completed_via_skip() WC 11.3.0

private function was_onboarding_step_completed_via_skip( string $step_id, string $location ): bool {
	$statuses = (array) $this->get_nox_profile_onboarding_step_entry( $step_id, $location, 'statuses' );

	return ! empty( $statuses[ self::ONBOARDING_STEP_SKIPPED_MARKER ] );
}