1

我想将文本标签从“货到付款”更改为“亲自支付现金”,但我不知道如何定位挂钩并进行这些更改。我知道我应该在'title' => array() 中定位'default',但不知道如何去做。

    $this->form_fields = array(
        'enabled' => array(
            'title'       => __( 'Enable/Disable', 'woocommerce' ),
            'label'       => __( 'Enable cash on delivery', 'woocommerce' ),
            'type'        => 'checkbox',
            'description' => '',
            'default'     => 'no',
        ),
        'title' => array(
            'title'       => __( 'Title', 'woocommerce' ),
            'type'        => 'text',
            'description' => __( 'Payment method description that the customer will see on your checkout.', 'woocommerce' ),
            'default'     => __( 'Cash on delivery', 'woocommerce' ),
            'desc_tip'    => true,
        ),
        'description' => array(
            'title'       => __( 'Description', 'woocommerce' ),
            'type'        => 'textarea',
            'description' => __( 'Payment method description that the customer will see on your website.', 'woocommerce' ),
            'default'     => __( 'Pay with cash upon delivery.', 'woocommerce' ),
            'desc_tip'    => true,
        ),
4

0 回答 0