WordPress at Your Fingertips
function is not described

WC_Shipping_Legacy_Flat_Rate::init() public WC 1.0

Init function.

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

No Hooks.

Return

null. Nothing.

Usage

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

Code of WC_Shipping_Legacy_Flat_Rate::init() WC 5.9.0

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
}