Automattic\WooCommerce\Internal\Admin\Settings\PaymentsProviders\WooPayments
WooPaymentsService::was_onboarding_step_completed_via_skip
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).
Method of the class: WooPaymentsService{}
No Hooks.
Returns
bool. Whether the onboarding step was completed by being skipped forward.
Usage
// private - for code of main (parent) class only $result = $this->was_onboarding_step_completed_via_skip( $step_id, $location ): bool;
- $step_id(string) (required)
- The ID of the onboarding step.
- $location(string) (required)
- The location for which we are onboarding. This is an ISO 3166-1 alpha-2 country code.
WooPaymentsService::was_onboarding_step_completed_via_skip() WooPaymentsService::was onboarding step completed via skip code WC 11.1.2
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 ] );
}