Forms

Submissions And Email

The generated theme handles form submissions through WordPress admin-post.php.

What TemplateX Adds#

TemplateX adds the hidden fields needed for:

  • form name
  • action
  • current page URL
  • nonce
  • submission start time
  • AJAX detection
  • honeypot spam check
  • optional redirect

Submissions are rejected when the nonce is invalid. Obvious bot submissions are treated as spam and do not send email.

Stored Submissions#

When submission storage is enabled, successful submissions are saved as private templatex_submission posts.

Each stored submission includes the form name, submitted values, source URL, status, and user agent.

Use store="false" on a form when a specific form should skip storage:

php
{{ form:contact store="false" }}  ...{{ /form:contact }}

Global storage can also be disabled in form settings.

Email Notifications#

Each form can send:

  • an admin notification
  • a submitter confirmation

The Forms admin screen lets you choose recipients, from values, reply-to field, subjects, and HTML message bodies.

Email message templates can use placeholders from the form fields.