4
我不知道你需要多少信息,但WP-ContactForm-7是WordPress的聯繫表單。默認情況下,它對網站上的所有表單都有一個服務器響應消息。我有多種形式,並希望爲每個表單提供不同的服務器響應消息。WP-Contact Form 7 - PHP
如何爲每個使用此插件創建的不同表單創建不同的服務器響應消息?
以下是PHP代碼的插件,似乎涉及到信息的聯繫表格顯示片段:
function message($status) {
switch ($status) {
case 'mail_sent_ok':
return __('Your message was sent successfully. Thanks.', 'wpcf7');
case 'mail_sent_ng':
return __('Failed to send your message. Please try later or contact administrator by other way.', 'wpcf7');
case 'validation_error':
return __('Validation errors occurred. Please confirm the fields and submit it again.', 'wpcf7');
case 'accept_terms':
return __('Please accept the terms to proceed.', 'wpcf7');
case 'invalid_email':
return __('Email address seems invalid.', 'wpcf7');
case 'invalid_required':
return __('Please fill the required field.', 'wpcf7');
case 'captcha_not_match':
return __('Your entered code is incorrect.', 'wpcf7');
}
}
如果這不是足夠的信息,那麼你可以從here下載文件,看整個源代碼。
您可能想重新引用一些內容。不清楚這裏是否有問題,或者您是否共享解決方案以解決您遇到的問題。 – Randy 2008-10-17 02:09:54
我同意rcar。 – Till 2008-10-20 21:10:05