WordPress at Your Fingertips
function is not described

WC_Payment_Gateway::init_settings() public WC 1.0

Init settings for gateways.

{} It's a method of the class: WC_Payment_Gateway{}

No Hooks.

Return

null. Nothing.

Usage

$WC_Payment_Gateway = new WC_Payment_Gateway();
$WC_Payment_Gateway->init_settings();

Code of WC_Payment_Gateway::init_settings() WC 5.5.2

<?php
public function init_settings() {
	parent::init_settings();
	$this->enabled = ! empty( $this->settings['enabled'] ) && 'yes' === $this->settings['enabled'] ? 'yes' : 'no';
}