Plugin documentation

Close Forms After X Entries

Free 0.1.3 and Pro 0.1.3 setup, testing, billing, privacy, troubleshooting, rollback, and StoreFixKit Support.

Free 0.1.3 and Pro 0.1.3 documentation.

Close Forms After X Entries does one job: it closes a selected WPForms Lite form after an exact number of successful submissions. It stores only the form ID, the limit, the closed message, and one integer counter. It never reads or stores submitted names, email addresses, IP addresses, cookies, or field values.

Requirements

Component Requirement
WordPress 6.0 or newer
PHP 7.4 or newer
WPForms WPForms Lite 1.9.0 or newer, active
Access A WordPress administrator who can manage site options

Install the free plugin

  1. Install and activate WPForms Lite.
  2. Create and publish the form you want to limit.
  3. Install Close Forms After X Entries from WordPress.org after its directory listing is approved, or upload the supplied release ZIP for testing.
  4. Activate the plugin.
  5. Open WPForms > Entry Limit.

If WPForms is unavailable, the plugin registers no public processing hooks and shows an administrator notice. Existing forms remain under WPForms control.

Close the first form

  1. Choose the form from the selector.
  2. Enter the total number of successful submissions to accept.
  3. Write the message visitors should see after the form closes.
  4. Check Close this form at the limit.
  5. Select Save changes.
  6. Send real test submissions until the limit is reached.
Close Forms After X Entries settings with a WPForms form selector, entry limit, and closed message
Choose one form, one successful-entry limit, and one plain closed message.

The free plugin limits one form. A zero, missing, or malformed limit leaves the form open instead of guessing.

What counts as an entry

The counter is committed only after WPForms reaches its documented successful-completion hook. Validation failures, spam, processing errors, and unsuccessful requests do not become committed entries.

Before WPForms performs its normal side effects, StoreFixKit atomically reserves the next available slot. This prevents two simultaneous visitors from both taking the final spot. If later WPForms processing fails, the uncommitted reservation is released automatically.

The plugin does not inspect submitted fields. WPForms Lite can report an entry ID of zero when entry storage is unavailable; the successful completion event still provides the authoritative completion boundary.

What visitors see after the limit

On a fresh page render, the form is replaced by the escaped closed message. A cached page can still display an old form, so the server checks again when the visitor submits and blocks a late request before WPForms sends notifications or saves an entry.

Published page showing the configured closed message after the WPForms entry limit is reached
The configured message replaces the form after the successful-entry limit is reached.

Free and Pro

Free keeps one lifetime form limit active without a StoreFixKit account or license. Pro adds limits for up to 1,000 forms, optional remaining-spots text, and an authorized manual reset for a selected counter.

Close Forms After X Entries Pro settings with multiple form limits, spots-left controls, and reset action
Pro expands the same focused workflow without changing submitted data or WPForms entries.

Deactivating Pro leaves the first valid free form limit working. Resetting a Pro counter changes only the StoreFixKit integer for that selected form; it does not delete WPForms entries, notifications, forms, or submission data.

Start the 14-day Pro trial

  1. Open the product page.
  2. Select Start 14-day trial. No card is required to begin.
  3. Stripe returns to the StoreFixKit success page and the signed webhook creates a product-bound license.
  4. Copy the key and download the Pro 0.1.3 ZIP.
  5. Add a payment method through Add payment method / manage billing before day 14 to continue the annual subscription. Stripe cancels the subscription at trial end when no payment method has been added.

Install and activate Pro

  1. Keep WPForms Lite and the free plugin active.
  2. Upload and activate the Pro ZIP beside Free.
  3. Return to WPForms > Entry Limit.
  4. Paste the product license key into the Pro license panel and select Activate Pro.
  5. Add the extra form limits you need and save.

Use Check license now to refresh status. Use Deactivate Pro on this site before moving the license. A license or StoreFixKit API outage cannot disable the first free limit.

Cache, concurrency, and resource use

  • The final slot is reserved with one bounded atomic database update.
  • The plugin creates no custom table, scheduled task, analytics event, cookie, frontend script, or frontend stylesheet.
  • It makes no public remote request and performs no form-catalog scan on unrelated pages.
  • A cached form page is not treated as proof that a slot is available; the submitted request is checked again server-side.
  • If the counter cannot be read or updated reliably, the form remains open and uncertain state is not mutated.

Privacy and security

  • Settings writes require administrator capability and a WordPress nonce.
  • Form IDs and limits are validated as bounded positive integers.
  • Messages are sanitized on save and escaped on output.
  • Submitted field values are never read, copied, logged, or sent to StoreFixKit.
  • WPForms forms, entries, notifications, confirmations, and user accounts remain untouched.

Troubleshooting

The form never closes

Open WPForms > Entry Limit and confirm that the correct form is selected, the feature is enabled, and the limit is greater than zero. Send a successful submission and confirm WPForms completes without a validation or mail-processing error. Failed submissions deliberately do not count.

The form closed too early

Check whether administrators used the same production form during testing. Compare the displayed count with successful submissions made after the limit was enabled. The plugin does not count failed requests or inspect WPForms entry records, so restoring or deleting WPForms entries does not rewrite the StoreFixKit counter.

A cached page still shows the form

Purge that page from the page cache or CDN. The stale form can still be displayed, but a late submission is checked server-side. Test in a private window and confirm the configured closed message appears after submission.

Pro controls are unavailable

Confirm that WPForms Lite, Free, and Pro are active. Select Check license now and verify that the key belongs to Close Forms After X Entries and the current site. Free continues with the first valid form limit while Pro is unavailable.

Rollback

  1. Back up the database and retain the current Free and Pro ZIPs.
  2. Deactivate Pro and Free.
  3. Install the previous known-good ZIPs.
  4. Activate Free first, then Pro.
  5. Confirm the selected form, limit, closed message, and counter are unchanged.
  6. Send one below-limit test and one at-limit test.

The verified 0.1.3 -> 0.1.2 -> 0.1.3 drill preserves valid settings and counters. Rollback never edits WPForms forms or entries.

Uninstall

Deleting Free removes only sfk_wpf_el_settings and the owned sfk_wpf_el_count_{form_id} counters. Deleting Pro removes its owned settings and license option. WPForms forms, entries, notifications, users, pages, and submitted data remain untouched.

StoreFixKit Support

Use StoreFixKit Support and include the form ID, configured limit, displayed StoreFixKit count, WordPress version, WPForms version, Free and Pro versions, cache/CDN name, expected result, actual result, and screenshots. Never send submitted field values, customer details, credentials, or a full license key.