【发布时间】:2018-07-19 21:52:52
【问题描述】:
我有一个灵活的问题,我没有得到任何答案。我在 Woocommerce Checkout 字段中使用“Checkout Field Editor”添加了一个自定义字段。该字段如下所示,似乎工作正常。
<input class="input-text " name="wc_order_field_7542" id="wc_order_field_7542" placeholder="Pickup Date" value="" type="text">
但是,现在我正在开发一个插件,并希望在此特定字段中输入值,但似乎无法弄清楚。对于其他领域,我只是在为“计费电子邮件”执行以下操作,并且它正在工作:
public function get_billing_email() {
$billing_email = $this->order->billing_email;
return apply_filters( 'xc_woo_cloud_print_billing_email', $billing_email, $this );
}
public function billing_email() {
echo $this->get_billing_email();
}
我确定我忘记了某些事情并且没有做正确的事情。
感谢任何帮助。
【问题讨论】:
标签: php wordpress woocommerce checkout orders