php - Woocommerce 电子邮件添加了一个
问题描述
我正在尝试找到一种方法来摆脱 woocommerce 电子邮件中的额外 <br>。它在 Request 之后以及日期中添加了 <br>:
<h2>
<a class="link" href="<?php echo esc_url( admin_url( 'post.php?post=' . $order->get_id() . '&action=edit' ) ); ?>">
<b><?php printf(__( 'Request #%s test', 'woocommerce' ), $order->get_order_number() ); ?></b>
</a>
(<?php strip_tags(
printf( '<time datetime="%s">%s</time>',
$order->get_date_created()->format( 'c' ),
wc_format_datetime( $order->get_date_created() ) ),
'<br>' );
?>)
</h2>
解决方案
推荐阅读
- arrays - 如何使用 MPI 发送整数数组并计算它们的阶乘?
- postgresql - 并发查询给出意外数据
- kotlin - 在 Ktor 中构建 URL
- r - 在 RBookdown 中创建“在此页面上”部分
- flutter - Flutter:从两个不同的变量中添加日期和时间以转换为 UTC
- go - vscode安装golang插件出错
- google-sheets - 提取 IMPORTXML (Google Sheets) 导入的文本中的所有百分比
- google-tag-manager - 清理 GTM 模板
- c# - 规范模式与(流利)验证
- serialization - 带有 InputStream com.fasterxml.jackson.databind.JsonMappingException 的 aws-lambda 处理程序:无法构造 java.io.InputStream 的实例