2015-12-25 41 views
0

中給出的值我有WP插件,稱爲檢查電子郵件驗證。參數1到wpcf7_tg_pane_checkmail()應該是一個參考,在

該插件在聯繫表單7中添加了一個名爲「Checkmail」的新字段,允許在提交表單時進行雙重電子郵件檢查。新的字段會要求用戶通過在第二個字段中輸入確認他們的電子郵件。

但該插件支持不可用,它不是與最新的聯繫表格工作7.

而當我嘗試添加在從後端接觸Checkmail領域,它給我的錯誤

警告:參數1至wpcf7_tg_pane_checkmail()預期爲一個參考,在值給出/home/autowash/public_html/wp-content/plugins/contact-form-7/admin/includes/tag-generator.php上線68

這裏的任何人都可以幫我解決這個問題。我在我的插件文件中找到了代碼。

function WPCF7_tg_pane_checkmail(&$contact_form) { 
?> 
<div id="WPCF7-tg-pane-checkmail" class="hidden"> 
<form action=""> 

<table> 
<tr><td><?php echo esc_html(__('Name', 'WPCF7')); ?><br /><input type="text" name="name" class="tg-name oneline" /></td><td></td></tr> 

<tr> 
<td><code>id</code> (<?php echo esc_html(__('optional', 'WPCF7')); ?>) <br /> 
<input type="text" name="id" class="idvalue oneline option" /></td> 
</tr> 

<tr> 
<td><?php echo esc_html(__('Email field name to check', 'WPCF7')); ?><br /><input type="text" name="values" class="oneline" /></td> 

</tr> 
</table> 

<div class="tg-tag"><?php echo esc_html(__("Copy this code and paste it into the form left.", 'WPCF7')); ?><br /><input type="text" name="checkmail" class="tag" readonly="readonly" onfocus="this.select()" /></div> 

<div class="tg-mail-tag"><?php echo esc_html(__("And, put this code into the Mail fields below.", 'WPCF7')); ?><br /><span class="arrow">&#11015; </span>&nbsp;<input type="text" class="mail-tag" readonly="readonly" onfocus="this.select()" /></div> 
</form> 
</div> 
<?php 
} 

?> 

回答

0

我可以看到您撥打的密碼嗎?問題是您的代碼正在調用該函數並傳遞一個值,如字符串變量或int或boolean或null。您需要將參考傳遞給變量。或者您可以在$ contact_form前面的函數調用中刪除'&'。

+0

我弄清楚了這個問題,我已經刪除了&,現在開始工作,並刪除了class =「hidden」,所以現在開始顯示。但我有刷新標籤不起作用的問題。所以我匹配聯繫表單模塊標籤中的代碼。現在代碼很好,但現在它不能驗證來自[link](http://www.xesense.com/contact/) –

相關問題