| 开发者 | Guido07111975 |
|---|---|
| 更新时间 | 2026年3月5日 14:45 |
| PHP版本: | 6.0 及以上 |
| WordPress版本: | 6.9 |
| 版权: | GPLv3 |
| 版权网址: | 版权信息 |
[contact] to a page. This will display your form.
Or go to Appearance > Widgets and use the VS Contact Form widget.
Customize your form via the settings page or with attributes.
Settings page
The settings page is located at Settings > VS Contact Form.
Attributes
Settings and labels can be overridden by adding attributes to the block, shortcode, or widget.
This can be useful when having multiple contact forms on your website.
Misc:
class="your-class-name"email_to="your-email-address"email_to="first-email-address, second-email-address"from_header="your-email-address"subject="your subject"subject_auto_reply="your subject"label_name="your label"label_email="your label"label_subject="your label"label_message="your label"label_privacy="your label"label_submit="your label"placeholder_name="your placeholder"placeholder_email="your placeholder"placeholder_subject="your placeholder"placeholder_message="your placeholder"error_name="your label"error_email="your label"error_subject="your label"error_sum="your label"error_message="your label"error_message_has_links="your label"error_message_has_links="your label"error_message_has_email="your label"error_banned_words="your label"error_privacy="your label"thank_you_message="your message"auto_reply_message="your message"[contact email_to="your-email-address" subject="your subject" label_submit="your label"]
When using the block or the widget, don't add the main shortcode tag or the brackets.
Example: email_to="your-email-address" subject="your subject" label_submit="your label"
Display form submissions in dashboard
Via the settings page you can activate form submissions being stored and displayed in your dashboard.
After activation go to menu item "Submissions". Your form submissions will be listed here.
SMTP
SMTP (Simple Mail Transfer Protocol) is an internet standard for sending emails.
By default, WordPress uses the PHP mail() function for sending emails. But when using SMTP there's less chance your form submissions are being marked as spam.
You must install an additional plugin for this, such as WP mail SMTP.
Cache
If you're using a caching plugin and want to avoid conflicts with the contact form, exclude your contact page from caching. This can be done via the settings page of most caching plugins.
Have a question?
Please take a look at the FAQ section.
Translation
Translations are not included, but the plugin supports WordPress language packs.
More translations are very welcome!
The translation folder inside this plugin is redundant, but kept for reference.
鸣谢
Without help and support from the WordPress community I was not able to develop this plugin, so thank you!
The plugin will use the website language, set in Settings > General. If translations are not available in the selected language, English will be used.
Yes, but do not set custom labels for Name, Email, Subject, etc with the label attributes or via the settings page. Use a multilingual plugin instead. If each language has its own form, than each form can have its own label attributes.
By default form submissions will be send to the email address set in Settings > General. You can change this via the settings page or by using an attribute.
I have used a default "From" email header to avoid form submissions being marked as spam. Best practice is using a "From" email header (an email address) that ends with your website domain. The default "From" email header starts with "wordpress" and ends with your website domain. You can change this by using an attribute. Your reply to sender will use another email header, called "Reply-To", which is the email address that sender has filled in.
The plugin uses minimal styling and therefore also depends on the styling of your theme.
Do not add multiple blocks, shortcodes or widgets to the same page. This might cause a conflict. But you can display a form by using the block or the shortcode and a form by using the widget.
If you want extra fields you should use another contact form plugin, such as WPForms.
An error message is displayed if plugin was unable to send form. Or nothing seems to happen after pressing submit.
mail() function. Sending via SMTP will solve this.
For more info about SMTP check the "SMTP" section above.
For more info about caching check the "Cache" section above.
Of course, the default WordPress validating, sanitizing and escaping functions are included. Also included are a sum field, hidden honeypot fields and a hidden time trap. And you can limit the number of links and email addresses that is allowed in Message field.
If you receive a lot of spam you can choose to ignore form submissions with banned words, links or email addresses. Sender can still fill out the form and include banned words, links or email addresses. But nothing happens with this form submission. So sender gets the impression form is successfully send and moves on. You can activate this feature via the settings page.
The General Data Protection Regulation (GDPR) is a regulation in EU law on data protection and privacy for all individuals within the European Union. I did my best to meet the conditions of the GDPR:
The version number won't give you info about the type of update (major, minor, patch). You should check the changelog to see whether or not the update is a major or minor one.
You like my plugin and want to make a donation? There's a PayPal donate link at my website. Thank you!
Please open a topic in the WordPress.org support forum for this plugin.