WC_Shipping_Legacy_International_Delivery::init_form_fields()publicWC 1.0

Initialise settings form fields.

Method of the class: WC_Shipping_Legacy_International_Delivery{}

No Hooks.

Return

null. Nothing (null).

Usage

$WC_Shipping_Legacy_International_Delivery = new WC_Shipping_Legacy_International_Delivery();
$WC_Shipping_Legacy_International_Delivery->init_form_fields();

WC_Shipping_Legacy_International_Delivery::init_form_fields() code WC 8.6.1

public function init_form_fields() {
	parent::init_form_fields();
	$this->form_fields['availability'] = array(
		'title'       => __( 'Availability', 'woocommerce' ),
		'type'        => 'select',
		'class'       => 'wc-enhanced-select',
		'description' => '',
		'default'     => 'including',
		'options'     => array(
			'including' => __( 'Selected countries', 'woocommerce' ),
			'excluding' => __( 'Excluding selected countries', 'woocommerce' ),
		),
	);
}