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

WooPaymentsService::get_nox_profileprivateWC 1.0

Get the entire stored NOX profile data.

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

Хуков нет.

Возвращает

Массив. The stored NOX profile.

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

// private - только в коде основоного (родительского) класса
$result = $this->get_nox_profile(): array;

Код WooPaymentsService::get_nox_profile() WC 10.8.1

private function get_nox_profile(): array {
	$nox_profile = $this->proxy->call_function( 'get_option', self::NOX_PROFILE_OPTION_KEY, array() );

	if ( empty( $nox_profile ) ) {
		$nox_profile = array();
	} else {
		$nox_profile = maybe_unserialize( $nox_profile );
	}

	return $nox_profile;
}