WC_Shipping_Flat_Rate::init()
Init user set variables.
Method of the class: WC_Shipping_Flat_Rate{}
No Hooks.
Return
null
. Nothing (null).
Usage
$WC_Shipping_Flat_Rate = new WC_Shipping_Flat_Rate(); $WC_Shipping_Flat_Rate->init();
WC_Shipping_Flat_Rate::init() WC Shipping Flat Rate::init code WC 9.6.1
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' ); }