WC_Shipping_Legacy_International_Delivery::init_form_fields
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 Shipping Legacy International Delivery::init form fields WC 10.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' ),
),
);
}