Automattic\WooCommerce\Internal\Admin\Settings\PaymentsProviders\WooPayments
WooPaymentsService::save_nox_profile_onboarding_step
Save the onboarding step data in the NOX profile.
Метод класса: WooPaymentsService{}
Хуков нет.
Возвращает
bool. Whether the onboarding step data was saved.
Использование
// private - только в коде основоного (родительского) класса $result = $this->save_nox_profile_onboarding_step( $step_id, $location, $data ): 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.
- $data(массив) (обязательный)
- The onboarding step data to save in the profile.
Код WooPaymentsService::save_nox_profile_onboarding_step() WooPaymentsService::save nox profile onboarding step WC 11.1.0
private function save_nox_profile_onboarding_step( string $step_id, string $location, array $data ): bool {
$nox_profile_onboarding = $this->get_nox_profile_onboarding( $location );
if ( empty( $nox_profile_onboarding['steps'] ) ) {
$nox_profile_onboarding['steps'] = array();
}
// Update the stored step data.
$nox_profile_onboarding['steps'][ $step_id ] = $data;
return $this->save_nox_profile_onboarding( $location, $nox_profile_onboarding );
}