WC_Payment_Gateway::init_settings()
Init settings for gateways.
Method of the class: WC_Payment_Gateway{}
No Hooks.
Return
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 9.7.1
public function init_settings() { parent::init_settings(); $this->enabled = ! empty( $this->settings['enabled'] ) && 'yes' === $this->settings['enabled'] ? 'yes' : 'no'; }