WC_Shipping_Legacy_Flat_Rate::init()publicWC 1.0

Init function.

Method of the class: WC_Shipping_Legacy_Flat_Rate{}

No Hooks.

Return

null. Nothing (null).

Usage

$WC_Shipping_Legacy_Flat_Rate = new WC_Shipping_Legacy_Flat_Rate();
$WC_Shipping_Legacy_Flat_Rate->init();

WC_Shipping_Legacy_Flat_Rate::init() code WC 9.3.3

public function init() {
	// Load the settings.
	$this->init_form_fields();
	$this->init_settings();

	// Define user set variables.
	$this->title        = $this->get_option( 'title' );
	$this->availability = $this->get_option( 'availability' );
	$this->countries    = $this->get_option( 'countries' );
	$this->tax_status   = $this->get_option( 'tax_status' );
	$this->cost         = $this->get_option( 'cost' );
	$this->type         = $this->get_option( 'type', 'class' );
	$this->options      = $this->get_option( 'options', false ); // @deprecated 2.4.0
}