Woocommerce 如何更改“的标签/文本?”;“货到付款”;在商业中?
我想将文本标签从“货到付款”改为“亲自支付现金”,但我不知道如何针对钩子进行这些更改。我知道我应该以'title'=>array()中的'default'为目标,但不确定如何实现这一点Woocommerce 如何更改“的标签/文本?”;“货到付款”;在商业中?,woocommerce,payment-method,Woocommerce,Payment Method,我想将文本标签从“货到付款”改为“亲自支付现金”,但我不知道如何针对钩子进行这些更改。我知道我应该以'title'=>array()中的'default'为目标,但不确定如何实现这一点 $this->form_fields = array( 'enabled' => array( 'title' => __( 'Enable/Disable', 'woocommerce' ), 'label'
$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,
),
您可以直接在WC设置>签出>货到付款>标题(字段)…中执行此操作。无需代码您可以直接在WC设置>签出>货到付款>标题(字段)…中执行此操作。无需代码