Automattic\WooCommerce\Internal\Admin\Settings\PaymentsProviders\WooPayments
WooPaymentsService::get_nox_profile_onboarding_step_entry
Get an entry from the NOX profile onboarding step details.
Метод класса: WooPaymentsService{}
Хуков нет.
Возвращает
mixed. The entry from the NOX profile step details. If the entry is not found, the default value is returned.
Использование
// private - только в коде основоного (родительского) класса $result = $this->get_nox_profile_onboarding_step_entry( $step_id, $location, $entry, $default_value ): 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.
- $entry(строка) (обязательный)
- The entry to get from the step data.
- $default_value(разное)
- The default value to return if the entry is not found.
По умолчанию:array()
Код WooPaymentsService::get_nox_profile_onboarding_step_entry() WooPaymentsService::get nox profile onboarding step entry WC 11.1.0
private function get_nox_profile_onboarding_step_entry( string $step_id, string $location, string $entry, $default_value = array() ): array {
$step_details = $this->get_nox_profile_onboarding_step( $step_id, $location );
if ( ! isset( $step_details[ $entry ] ) ) {
return $default_value;
}
return $step_details[ $entry ];
}