Automattic\WooCommerce\Internal\Admin\Settings\PaymentsProviders\WooPayments
WooPaymentsService::is_onboarding_step_failed
Check if an onboarding step has a failed status.
Метод класса: WooPaymentsService{}
Хуков нет.
Возвращает
bool. Whether the onboarding step is failed.
Использование
// private - только в коде основоного (родительского) класса $result = $this->is_onboarding_step_failed( $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::is_onboarding_step_failed() WooPaymentsService::is onboarding step failed WC 11.3.0
private function is_onboarding_step_failed( 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_STATUS_FAILED ] );
}