如何在WooCommerce中更改“货到付款”的标签/文字?

时间:2017-09-25 13:23:58

标签: woocommerce payment-method

我想将文本标签从“货到付款”更改为“现金支付”,但我无法弄清楚如何定位挂钩并进行这些更改。我知道我应该定位'title'=>中的'default' array(),但不知道如何解决这个问题。

    $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,
        ),

0 个答案:

没有答案