WC_Shipping_Legacy_Flat_Rate::init
Init function.
Method of the class: WC_Shipping_Legacy_Flat_Rate{}
No Hooks.
Returns
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() WC Shipping Legacy Flat Rate::init code WC 10.6.2
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
}