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