2016-11-04 75 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>