WC_Payment_Gateway::init_settings
Init settings for gateways.
Method of the class: WC_Payment_Gateway{}
No Hooks.
Returns
null. Nothing (null).
Usage
$WC_Payment_Gateway = new WC_Payment_Gateway(); $WC_Payment_Gateway->init_settings();
WC_Payment_Gateway::init_settings() WC Payment Gateway::init settings code WC 10.6.2
public function init_settings() {
parent::init_settings();
$this->enabled = ! empty( $this->settings['enabled'] ) && 'yes' === $this->settings['enabled'] ? 'yes' : 'no';
}