Linux 软件免费装
Banner图

SubmitDock – Headless Form Backend

开发者 imalinawaz
更新时间 2026年11月22日 02:46
捐献地址: 去捐款
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

rest api headless form submissions nextjs form backend

下载

1.2.2 1.2.3 1.2.0 1.2.1 1.1.0

详情介绍:

SubmitDock turns your WordPress site into a form backend. Point any form at your endpoint, from a static site, a headless WordPress front end, a React, Next.js, Vue, or Astro app, a mobile app, or a server, and every submission is saved in WordPress and emailed to you. There is no form builder to set up. You build the form however you like, and the plugin accepts whatever fields it sends. It works like a hosted form backend service such as Formspree, but your submissions stay on your own WordPress site, with no monthly fee or submission limit. It is a free, self-hosted form backend. Why use it How it works
  1. Install the plugin. Your endpoint is https://your-site.com/wp-json/submitdock/v1/submit.
  2. Under Form Submissions → Settings, add the websites allowed to send forms.
  3. Send your form to the endpoint. Form Submissions → Developer guide has copy-ready JavaScript, HTML, and cURL examples using your own URL.
Responses are JSON with a 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: Submissions in the Spam folder are never sent to webhooks or Google Sheets and get no auto-reply. SubmitDock Pro costs from $29 a year, with a 14-day refund policy. See SubmitDock Pro. Custom development Need a ready-made connection to your CRM, a multi-step form, or a full headless WordPress build? The plugin is built and maintained by Ali Nawaz, a WordPress and full stack developer. Get in touch for custom work.

安装:

  1. Install and activate the plugin.
  2. Go to Form Submissions → Settings. Check the notification email address and add the websites that will send forms, such as https://example.com.
  3. Open Form Submissions → Developer guide and copy an example into your front end.
  4. Send a test submission. It appears under Form Submissions and in your email.

屏幕截图:

  • A single submission: the submitted fields and visitor details such as page, referrer, browser and device.
  • Settings: email notifications, allowed websites, spam trap, rate limit, privacy options and response messages.
  • Built-in developer guide with ready-to-copy JavaScript, HTML and cURL examples for your endpoint.
  • Spam protection settings: Cloudflare Turnstile, hCaptcha or Google reCAPTCHA, Akismet, and how long to keep spam.
  • The Spam folder, with Not spam actions to move a submission back to the inbox.

升级注意事项:

1.2.3 Send notifications to several email addresses, and a fix for false errors on the first settings save. 1.2.2 Settings text and SubmitDock Pro information. Nothing to change. 1.2.1 Translation and right-to-left language improvements. Nothing to change. 1.2.0 Adds optional Turnstile, hCaptcha, reCAPTCHA and Akismet spam checks, a Spam folder, and an API key for server-side code. Nothing changes until you turn them on. 1.1.0 Renamed to SubmitDock with a new endpoint, /wp-json/submitdock/v1/submit. Update your forms to the new address. 1.0.1 Shows who each notification was sent to and adds a View link to the submissions list. 1.0.0 Initial release.

常见问题:

How is this different from Contact Form 7 or other form plugins?

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.

Can I use it with Next.js, React, Vue, Astro, or Gatsby?

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.

Can a plain HTML form use it without JavaScript?

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.

Why do I get a 403 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.

How does it stop spam?

In layers, all optional except the rate limit:

  • A hidden field named _gotcha (you can change the name) that people never see. Bots fill it in and are rejected.
  • Each visitor is limited to five submissions every 15 minutes by default.
  • A CAPTCHA check with Cloudflare Turnstile, hCaptcha, or Google reCAPTCHA. Add the service's widget to your form and enter your secret key under Settings. Submissions without a valid token get a 400 error and are not saved.
  • Akismet, if the Akismet plugin is active and connected. Suspected spam goes to the Spam folder without an email.

Which CAPTCHA should I use?

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.

What happens if the CAPTCHA service is down?

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.

What is the API key for?

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.

Can it accept file uploads?

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.

Can I send submissions to a webhook without code?

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.

My site is behind Cloudflare or a proxy. Which IP is saved?

The connecting IP address. Use the submitdock_client_ip filter to read the visitor's address from the header your proxy provides.

How long is spam kept?

30 days by default, then it is deleted permanently. Change it under Settings, or enter 0 to keep spam until you delete it.

Are submissions deleted when I uninstall?

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.

What does SubmitDock Pro add?

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.

Is the plugin available in my language?

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.

更新日志:

1.2.3 (2026-11-21) 1.2.2 (2026-11-19) 1.2.1 (2026-11-15) 1.2.0 (2026-11-15) 1.1.0 1.0.1 1.0.0