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
版权声明:本文标题:woocommerce offtopic - Get and insert order email address to the PHP template inside HTML text 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742119015a2421606.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论