WordPress at Your Fingertips
function is not described

WC_Shipping_Flat_Rate::init() public WC 1.0

Init user set variables.

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

No Hooks.

Return

null. Nothing.

Usage

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

Code of WC_Shipping_Flat_Rate::init() WC 5.9.0

public function init() {
	$this->instance_form_fields = include __DIR__ . '/includes/settings-flat-rate.php';
	$this->title                = $this->get_option( 'title' );
	$this->tax_status           = $this->get_option( 'tax_status' );
	$this->cost                 = $this->get_option( 'cost' );
	$this->type                 = $this->get_option( 'type', 'class' );
}