WC_Payment_Gateway::init_settings()

Init settings for gateways.


Description Description


Source Source

File: includes/abstracts/abstract-wc-payment-gateway.php

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


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.