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

WooPaymentsService::standardize_onboarding_steps_details │ private │ WC 1.0

Standardize (and sanity check) the onboarding steps list.

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

Хуков нет.

Возвращает

array. The standardized onboarding steps list.

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

// private - только в коде основоного (родительского) класса
$result = $this->standardize_onboarding_steps_details( $steps, $location, $rest_path ): array;
$steps(массив) (обязательный)
The onboarding steps list to standardize.
$location(строка) (обязательный)
The location for which we are onboarding. This is an ISO 3166-1 alpha-2 country code.
$rest_path(строка) (обязательный)
The REST API path to use for constructing REST API URLs.

Код WooPaymentsService::standardize_onboarding_steps_details() WC 11.3.0

private function standardize_onboarding_steps_details( array $steps, string $location, string $rest_path ): array {
	$standardized_steps = array();
	foreach ( $steps as $step ) {
		$standardized_steps[] = $this->standardize_onboarding_step_details( $step, $location, $rest_path );
	}

	return $standardized_steps;
}