我已将脚本添加到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。我该如何解决?
在您的PHP字符串中使用一个链接: $new = $text . ' A receipt has been sent to you via email.Please submit your ticket <a href="https://google.com">here</a>';
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句