Automattic\WooCommerce\Internal\Admin\Settings\PaymentsProviders\WooPayments
WooPaymentsService::save_nox_profile_onboarding_step_data_entry
Save a data entry in the NOX profile onboarding step details.
Метод класса: WooPaymentsService{}
Хуков нет.
Возвращает
true|false. Whether the onboarding step data was saved.
Использование
// private - только в коде основоного (родительского) класса $result = $this->save_nox_profile_onboarding_step_data_entry( $step_id, $location, $entry, $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.
- $entry(строка) (обязательный)
- The entry key under which to save in the step
data. - $data(разное) (обязательный)
- The value to save.
Код WooPaymentsService::save_nox_profile_onboarding_step_data_entry() WooPaymentsService::save nox profile onboarding step data entry WC 10.8.1
private function save_nox_profile_onboarding_step_data_entry( string $step_id, string $location, string $entry, $data ): bool {
$step_details_data = $this->get_nox_profile_onboarding_step_entry( $step_id, $location, 'data' );
// Update the stored step data.
$step_details_data[ $entry ] = $data;
return $this->save_nox_profile_onboarding_step_entry( $step_id, $location, 'data', $step_details_data );
}