WC_Shipping_Legacy_International_Delivery::init_form_fields()publicWC 1.0

Initialise settings form fields.

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

Хуков нет.

Возвращает

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

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

$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() WC 8.7.0

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' ),
		),
	);
}