【发布时间】:2017-04-09 16:46:28
【问题描述】:
我在 WordPress 中的 functions.php 文件中添加了一个脚本,以在 Woocommerce 感谢页面中生成其他文本。
**
* Custom text on the receipt page.
*/
function isa_order_received_text( $text, $order ) {
$new = $text . ' A receipt has been sent to you via email.Please submit your ticket here:https://google.com';
return $new;
}
部分文本是指向另一个页面的链接。
Please submit your ticket here:https://google.com';
但是,该链接不会在前端显示为突出显示/可点击的 URL。我该如何解决这个问题?
【问题讨论】:
-
<a href="">... ? -
使用基本 HTML?
<a href="...">...</a>? -
哎呀!真是个傻瓜!有时我会惊讶自己!谢谢。
标签: php wordpress woocommerce