WC_Shipping_Legacy_Flat_Rate::init()publicWC 1.0

Init function.

Метод класса: WC_Shipping_Legacy_Flat_Rate{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

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

Код WC_Shipping_Legacy_Flat_Rate::init() WC 8.7.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
}