admin管理员组

文章数量:1323736

I broke my head trying to solve the following case. I have a WooCommerce admin-new-order.php PHP template I want to customize. All I want is to add the order email address to the top of the email body inside the custom URL. I'll explain more detailed below:

I have the <a href="=" target="_blank">=</a> URL and I want to add this URL to the top of the PHP template.

I need to get the customer email address and insert it inside the URL so the URL will transform into (as an example):

<a href="/[email protected]" target="_blank">/[email protected]</a>

I guess I need to try to code something like that, but unfortunately I can't get of how to insert PHP here instead of demo email address:

<p><?php printf( __( '<a href="/[email protected]" target="_blank">/[email protected]</a>' ); ?></p>

I would appreciate any help with this one.

本文标签: woocommerce offtopicGet and insert order email address to the PHP template inside HTML text