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

WooPaymentsService::save_nox_profileprivateWC 1.0

Save the NOX profile data.

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

Хуков нет.

Возвращает

true|false. Whether the data was saved.

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

// private - только в коде основоного (родительского) класса
$result = $this->save_nox_profile( $data ): bool;
$data(массив) (обязательный)
The data to save in the profile.

Код WooPaymentsService::save_nox_profile() WC 10.8.1

private function save_nox_profile( array $data ): bool {
	return $this->proxy->call_function( 'update_option', self::NOX_PROFILE_OPTION_KEY, $data, false );
}