WP Manifestindependent plugin directory
manifest / forms / coco-form-lite

Coco Form Lite

A minimal wordpress contact form plugin without styling. support reCAPTCHA V3, save entries to database, and export csv pdf

by Coco · github.com/adikica/coco-form-lite

0stars
0forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/adikica/coco-form-lite/archive/refs/heads/main.zip

Coco Form Lite — Refactor Pack (Structure-Preserving)

This package keeps your exact working logic and reorganizes the plugin into a clean layout:

  • coco-form-lite.php — Bootstrap and autoloader
  • includes/PostTypes.php — Registers coco_form and coco_form_entry
  • includes/AdminMenu.php — Admin menu, Forms list, create/edit, toggle, clone, settings
  • includes/AdminActions.php — Dedicated admin actions (duplicate, etc.)
  • includes/AdminEntries.php — Entries list, filters, bulk actions, CSV/PDF(html) export
  • includes/Shortcode.php — Frontend rendering, inline assets, per-form nonce, messages
  • includes/Submit.php — AJAX endpoint: validation, spam checks (time, honeypot, words), reCAPTCHA v3, email send, redirect
  • includes/Email.php — Email headers builder (From/Reply-To/Cc/Bcc) & helpers
  • templates/demo-form.html — Starter form HTML
  • templates/mail-template.html — Email template placeholders

Workflow

  1. Create a Form (Coco Form Lite → Forms). Set metadata: recipients, subject, from, success message, button label, redirect URL, spam rules, active flag. Paste your custom form HTML.
  2. Embed with [coco_form id="ID"] wherever needed.
  3. Front-end: Shortcode injects nonce/hidden fields and inline JS. reCAPTCHA v3 is executed on submit if configured.
  4. Submit: AJAX validates (nonce, timing, honeypot, forbidden words, reCAPTCHA), stores entry, sends HTML email, and returns redirect/success.
  5. Entries: Use Entries admin to filter by form, paginate, bulk actions, and export CSV or HTML (for PDF printing).

Notes

  • This pack avoids functional changes to respect your confirmed-stable behavior.
  • Future step: add inline docblocks inside each method if you want deeper commentary without altering any behavior.