简体   繁体   中英

How do I add a link within this php?

Can someone please help me write this PHP so that the word "here" is a hyperlink to a new tab?

<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' ) ); ?>

Thanks!

<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' ) ); ?>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM