| 开发者 | imalinawaz |
|---|---|
| 更新时间 | 2026年11月22日 02:46 |
| 捐献地址: | 去捐款 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
fetch, or point a normal HTML form at the endpoint. HTML forms can return visitors to a thank-you page./submit/newsletter or /submit/quote to keep forms apart, then filter submissions by form.X-SubmitDock-Key header, even when only your own websites are allowed.https://your-site.com/wp-json/submitdock/v1/submit.message ready to show your visitors. Status 200 means saved and emailed, and 202 means saved but the email failed.
SubmitDock Pro
SubmitDock Pro is a separate add-on for forms that need more than fields and an email. The free plugin keeps every feature above, and Pro adds, on the same endpoint:
multipart/form-data to /submit/{form}. Each form has its own allowed file types, size limit (1 to 100 MB) and number of files (1 to 20). PHP, scripts, HTML, SVG and executables are always refused, and each file's content is checked against its type. Files are stored privately under random names, can be downloaded from the submission screen by users who can edit it, can be attached to the notification email, and are deleted with their submission.https://example.com.Form builder plugins draw the form on WordPress pages. This plugin has no form builder. It gives you an endpoint for forms that live somewhere else, such as a headless front end or a static site, and accepts any fields without configuration.
Yes. Send a POST request with a JSON body from the browser, or from a server action or API route with your API key. The developer guide has examples, including a Next.js server action.
Yes. Set the form's action to your endpoint and method to post. Add a hidden __redirect field to send visitors to a thank-you page with ?form_status=success or ?form_status=error.
The request came from a website that is not in the allowed list, or from a server without the API key. Servers send no Origin header, so create an API key under Settings and send it in the X-SubmitDock-Key header. For browsers, add your website's origin under Settings, or leave the list empty to accept submissions from anywhere.
In layers, all optional except the rate limit:
_gotcha (you can change the name) that people never see. Bots fill it in and are rejected.Any of the three works. Cloudflare Turnstile is free and usually invisible to visitors. reCAPTCHA v3 also runs invisibly and gives a score; set the minimum score under Settings (Google suggests 0.5). The widget adds its own field (cf-turnstile-response, h-captcha-response, or g-recaptcha-response). From JavaScript, you can also send the token as __captcha. The token is checked and never saved.
The submission is saved to the Spam folder instead of being lost, and no email is sent. Check the Spam folder and move it back with Not spam.
Server-side code, such as a Next.js server action, has no Origin header and no CAPTCHA widget. With the API key in an X-SubmitDock-Key header, it can submit even when only your websites are allowed, and it skips the CAPTCHA and the rate limit. Keep the key on your server, never in browser code. It is shown once when created and stored as a hash. The server can pass its visitor's IP address and browser in __context as ip_address and user_agent.
Not in the free plugin, which saves text, numbers, true/false values, lists, and nested objects. A multipart request still works, but its files are ignored. SubmitDock Pro accepts files on the same endpoint, with allowed types, size and count limits per form, content checks and private storage.
With the free plugin, use the submitdock_submission_saved action in your own code. SubmitDock Pro adds signed webhooks with automatic retries and a delivery log, set up in the dashboard.
The connecting IP address. Use the submitdock_client_ip filter to read the visitor's address from the header your proxy provides.
30 days by default, then it is deleted permanently. Change it under Settings, or enter 0 to keep spam until you delete it.
No, only the settings are removed, so messages are never lost by accident. To delete submissions too, define SUBMITDOCK_DELETE_DATA as true in wp-config.php before uninstalling.
File uploads with per-form type, size and count limits and private storage, signed webhooks with automatic retries and a delivery log, Google Sheets rows, and per-form email templates with auto-replies. It is a separate add-on that needs this free plugin, and your front end keeps using the same endpoint. See SubmitDock Pro.
The plugin is ready for translation, and translations are made by volunteers on WordPress.org. You can help translate it into your language at translate.wordpress.org. Once a language is 90% translated, WordPress installs the translation automatically through language packs. A translation template, languages/submitdock.pot, is included for tools such as Poedit and Loco Translate.
X-SubmitDock-Key header. Fixes server-side code being refused when allowed websites are set.submitdock_submission_spam action./wp-json/submitdock/v1/submit, and settings and submissions are stored under new names. A site already running Headless Form keeps its data in the old plugin.