【发布时间】:2018-11-19 06:45:31
【问题描述】:
我正在根据自己的需要定制 woocommerce 电子邮件模板。我只是想知道我是否可以访问当前的电子邮件 ID(例如 customer_processing_order 或 admin_new_order),以便可以在条件语句中使用它,例如
$email_id = /* Some function to get the email id */
if($email_id == 'admin_new_order') {
//do somthing
}
我想在 email-order-details.php 和 email-order-items.php 中使用它
谢谢
【问题讨论】:
-
回声'
'; print_r($email->id);回声'
';或者您可以在 email-order-details.php 文件中打印 $order 和 $email ...... -
谢谢,解决了我的问题
标签: wordpress woocommerce email