2016-11-04 99 views
-2

我试图给email-footer.php添加取消订阅链接,但无法收到收件人的电子邮件。我的代码没有工作,但也许可以帮助理解我需要什么:取消订阅链接woocommerce email-footer.php

<?php 
$recipient = get_recipient() 
?> 
<a href="http://mypage.com/unsubscribe?email=<php echo $recipient;?">Unsubcribe me</a> 

我尝试了一些过滤器和挂钩,但我在这个问题上迷失。 enybody能推动我吗?

+1

什么返回get_recipient()是? –

回答

0

您在链接中有语法错误。 正确的链接应该是这样的:

<a href="http://mypage.com/unsubscribe?email='<?php echo $recipient; ?>'">Unsubcribe me</a>