如何在此php中添加链接?

问题描述 投票:0回答:1

有人可以帮我写这个PHP,以便单词"here"是一个新标签的超链接?

<p>
<?php printf( __( "Hi there. Your recent purchase for %s was successful. A confirmation PDF is attached and your order details are shown below for your reference. 
<br>
Have you heard about our upcoming CD release? Pre-order your copy now by clicking here", 'woocommerce' ), get_option( 'blogname' ) ); ?>

谢谢!

php
1个回答
-1
投票
<p>
<?php printf( __( "Hi there. Your recent purchase for %s was successful. A confirmation PDF is attached and your order details are shown below for your reference. 
<br>
Have you heard about our upcoming CD release? Pre-order your copy now by clicking <a href='path/to/file'>here</a>, 'woocommerce' ), get_option( 'blogname' ) ); ?>
© www.soinside.com 2019 - 2024. All rights reserved.