如何在此php中添加链接?

时间:2019-03-31 22:29:18

标签: php

有人可以帮我写这个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' ) ); ?>

谢谢!

1 个答案:

答案 0 :(得分:-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' ) ); ?>