Test WordPress Contact Form
wordpress_test_contact_formSubmits a TEST entry to a Contact Form 7 form through the plugin's own REST endpoint and reports what happened: mail_sent (the form works and WordPress sent the notification mail), mail_failed (the entry passed validation but WordPress could NOT send the mail, usually an SMTP/mail setup problem; this is also why a 'wpcf7mailsent' conversion never fires), validation_failed (with the fields that were rejected), or spam (a spam guard such as reCAPTCHA/Akismet blocked the test; real visitors may still get through). fields = {"field-name": "value"}; required fields you leave out are filled with obvious test values (e.g. test@example.com). A real submission sends a REAL e-mail to the form's recipient, so confirm=false (default) only previews the values that would be sent; confirm=true submits once.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fields | No | ||
| confirm | No | ||
| form_id | Yes | ||
| site_url | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||