Install the connector
FormVigilant Connector is a small GPL plugin that runs synthetic test submissions on request and reports the outcome. It has no settings beyond the pairing code and no public endpoint that works without a signature from FormVigilant.
Requirements
- WordPress 6.0 or later, PHP 7.4 or later.
- The WordPress REST API reachable at
/wp-json/(or/?rest_route=on plain permalinks). - Outbound HTTPS from the site to
api.formvigilant.com. - WP-Cron running, or a server cron calling
wp-cron.php, for the 15-minute heartbeat.
Install
- Plugins › Add New, search "FormVigilant Connector", Install, Activate. On sites managed with Composer or WP-CLI:
wp plugin install formvigilant-connector --activate. - In FormVigilant, Sites › Add site and copy the pairing code (10-minute expiry).
- In wp-admin, Settings › FormVigilant, paste the code, Connect.
Pairing sends the code, the site URL and the WordPress, PHP and plugin versions to FormVigilant, and receives a site id and a per-site secret. The secret is stored encrypted in the options table with a key derived from your AUTH_KEY and SECURE_AUTH_KEY salts.
What the connector sends
- Heartbeat, every 15 minutes: connector, WordPress and PHP versions, active form and SMTP plugins, WP-Cron status, site time zone.
- After a test submission: whether
wp_mailsucceeded or failed for the test message, its recipients, the mailer name, message id and a few headers. Never the body of a real email.
Nothing is sent before the site is paired.
Firewalls and security plugins
FormVigilant calls the connector's REST routes under /wp-json/formvigilant/v1/. If pairing works but tests report CONNECTOR_UNREACHABLE:
- Open
https://<site>/wp-json/formvigilant/v1/heartbeatin a browser. A401JSON response is correct (the request is unsigned). A403HTML page or a CAPTCHA challenge means a firewall is in the way. - Allow the
/wp-json/formvigilant/path in Wordfence, Sucuri, iThemes or Cloudflare WAF rules. - Check the server clock. Signed requests are rejected when the site's time differs from real time by more than five minutes.
Staging and multiple environments
Pair each environment as its own site. The API URL can be changed for staging builds with a filter:
add_filter( 'formvigilant_api_url', fn() => 'https://staging-api.example.com/v1' );
A database copied from production to staging carries the production secret. Disconnect on staging after copying, then pair it as a separate site.
Disconnect
Settings › FormVigilant › Disconnect deletes the stored credentials, status and logs and stops the heartbeat. Removing the site in FormVigilant revokes the secret from the other side. Deleting the plugin removes all of its data.