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

WooPaymentsService::get_onboarding_step_errorprivateWC 1.0

Get the current stored error for an onboarding step.

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

Хуков нет.

Возвращает

Массив. The error for the onboarding step.

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

// private - только в коде основоного (родительского) класса
$result = $this->get_onboarding_step_error( $step_id, $location ): array;
$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::get_onboarding_step_error() WC 10.7.0

private function get_onboarding_step_error( string $step_id, string $location ): array {
	return (array) $this->get_nox_profile_onboarding_step_data_entry( $step_id, $location, 'error', array() );
}