WC_Shipping_Local_Pickup::init_form_fields()
Init form fields.
Метод класса: WC_Shipping_Local_Pickup{}
Хуков нет.
Возвращает
null
. Ничего.
Использование
$WC_Shipping_Local_Pickup = new WC_Shipping_Local_Pickup(); $WC_Shipping_Local_Pickup->init_form_fields();
Код WC_Shipping_Local_Pickup::init_form_fields() WC Shipping Local Pickup::init form fields WC 7.3.0
public function init_form_fields() { $this->instance_form_fields = array( 'title' => array( 'title' => __( 'Title', 'woocommerce' ), 'type' => 'text', 'description' => __( 'This controls the title which the user sees during checkout.', 'woocommerce' ), 'default' => __( 'Local pickup', 'woocommerce' ), 'desc_tip' => true, ), 'tax_status' => array( 'title' => __( 'Tax status', 'woocommerce' ), 'type' => 'select', 'class' => 'wc-enhanced-select', 'default' => 'taxable', 'options' => array( 'taxable' => __( 'Taxable', 'woocommerce' ), 'none' => _x( 'None', 'Tax status', 'woocommerce' ), ), ), 'cost' => array( 'title' => __( 'Cost', 'woocommerce' ), 'type' => 'text', 'placeholder' => '0', 'description' => __( 'Optional cost for local pickup.', 'woocommerce' ), 'default' => '', 'desc_tip' => true, ), ); }