Waref Forms

Description

Waref Forms connects your WordPress site to Waref in one click and turns what visitors send through your existing forms into contacts and leads.

  • Zero setup. Press “Connect to Waref”, approve in Waref, done. There are no keys to copy and no fields to map: Waref recognises names, e-mails, phone numbers, companies and messages automatically — in English, Arabic, Turkish and more — and keeps every other answer on the lead.
  • Every form plugin you already use. Submissions are caught on your server, right after the form plugin accepts them:
    • Contact Form 7
    • Elementor Pro forms
    • WPForms
    • Ninja Forms
    • Gravity Forms
    • Fluent Forms
    • Formidable Forms
    • Forminator
    • WooCommerce — new customers and orders (classic and block checkout)
    • WordPress comments and user registrations (off by default)
  • Other forms too. An optional fallback loads the Waref snippet, which catches forms built into your theme in the visitor’s browser (the forms above are excluded so nothing is sent twice).
  • Campaign tracking. A tiny script remembers the utm_* parameters of the landing page in a first-party cookie for 30 days, so every lead shows the campaign that brought the visitor.
  • Reliable. Each submission is stored in a local queue first and retried with back-off (1 and 5 minutes, 30 minutes, 2 and 12 hours) when Waref cannot be reached. Delivered submissions keep no form data on your site.
  • Secure. Server requests are signed with a per-site secret (HMAC-SHA256 with a timestamp); the connect flow uses a one-time code and a PKCE-style verifier. Passwords, hidden fields, file uploads, CAPTCHA answers and card or bank numbers are never sent.
  • Waref forms. Forms designed in Waref can also be placed on any page with the [waref_form] shortcode or the “Waref form” block.
  • An activity log of the last 50 submissions (time, form, status, HTTP status) without any personal data.

In Waref each form appears automatically after its first submission (Settings Lead capture), where you can switch it off, send its leads to another pipeline or owner, or adjust how a field is mapped — all optional.

Shortcode

[waref_form id="frm_XXXXXXXXXXXXXXXX" mode="inline" lang="en"]
  • id — the Waref form key (required).
  • mode — inline or floating (optional; the form’s own setting is used otherwise).
  • lang — force a language such as en, ar or tr (optional; the page language is used otherwise).

Developers

  • Filter waref_forms_payload — change the payload before it is queued and signed, or return false to skip a submission.
  • Filter waref_forms_adapters — add an adapter (a class extending Waref_Forms_Adapter).
  • Constant WAREF_FORMS_APP_URL — the Waref web app address for a self-hosted or test CRM (also under Waref Connection Advanced).

External services

This plugin sends data to Waref, the service where your leads are stored. The service is operated by the Waref provider you signed up with (by default https://waref.app, or the address set under Waref Connection Advanced or in the WAREF_FORMS_APP_URL constant). Nothing is sent until you connect the site.

  • Connecting (your browser and your server). “Connect to Waref” opens {CRM}/connect/wordpress with your site address, site name, the admin return address, a one-time state, a PKCE challenge and the plugin version. After you approve, your server calls {API}/api/v1/public/capture/connect/exchange with the one-time code, the verifier and your site address, and receives the keys of the connection.
  • Form submissions (your server). When a visitor submits a supported form (and its switch is on), your server sends the form’s fields, the form plugin and form name, the page URL and title, the referrer, the site language and the UTM parameters to {API}/api/v1/public/forms/{public key}/submit, signed with your secret.
  • Heartbeat (your server). On connect, when you save the settings, and twice a day: {API}/api/v1/public/forms/{public key}/heartbeat with the plugin, WordPress and PHP versions, the site address, the active form plugins and the site language. “Disconnect” calls …/disconnect.
  • Waref forms (your server and the visitor’s browser). “Load forms from Waref” requests {API}/api/v1/public/forms/{public key}. On pages with the shortcode or block, and on every page when the snippet fallback is on, the visitor’s browser loads {API}/embed/forms.js, which sends what the visitor submits (the fields, the page URL, referrer, page title, language and UTM parameters) to Waref.
  • Cookie. The plugin’s own script sets the first-party cookie waref_utm (30 days) only when a page is opened with utm_* parameters; it holds those parameters, the landing page address and the referrer, and is read by your server when a form is submitted.

The terms of service and privacy policy are those of your Waref provider. For the default service (https://waref.app): Terms of Service https://waref.app/terms and Privacy Policy https://waref.app/privacy. Mention this processing in your own site’s privacy policy.

Blocks

This plugin provides 1 block.

  • Waref form Embed a Waref website form.

Installation

  1. Install the plugin from Plugins Add New, or upload the zip under Plugins Add New Upload Plugin, and activate it.
  2. Open Waref in the admin menu and press Connect to Waref.
  3. Sign in to Waref if asked, choose the business and press Approve. You come back to WordPress, connected.
  4. That’s it. Submit one of your forms and look at the Activity tab here and at Settings Lead capture in Waref.

If the button cannot bring you back (for example when wp-admin runs on another address than the site), open the WordPress connection in Waref, choose Get a connection code and paste the code under Have a connection code?.

FAQ

Do I have to map fields?

No. The plugin sends each form’s fields with their labels and types; Waref recognises the name, e-mail, phone, company, message, city, country and consent fields automatically, and keeps everything else as answers on the lead. You can override how a field is mapped in Waref, but you never have to.

Which forms are sent?

Every form of the supported plugins that are active and switched on under Waref Forms (all form plugins are on by default). You can switch a single form off in Waref (Settings Lead capture your site Forms).

How do the switches here and in Waref work together?

The form plugins only have the switch on this site. WooCommerce customers, WooCommerce orders, comments and registrations have a switch here and an option on the connection in Waref: they are sent only when both allow it. WooCommerce customers and orders are on by default on both sides; comments and registrations are off by default on both sides. The plugin reads the Waref options when it connects, when you save its settings and twice a day.

What exactly is sent to Waref?

For each submission: the form plugin, the form’s id and name, the fields the visitor filled in (label, type and value), the page URL, its title, the referrer, the site language and the campaign (utm_*) parameters. Never: passwords, hidden fields, file uploads, CAPTCHA/honeypot/nonce fields, card numbers, CVV or IBAN fields. The IP address of the visitor is not sent by the plugin.

Does it slow down my forms?

The submission is stored first and one delivery attempt is made right away with a five-second timeout. If Waref does not answer in time, the submission is delivered later by WP-Cron. Errors never reach the form plugin or the visitor.

What if Waref is down?

Submissions wait in the local queue (the table {prefix}waref_queue) and are retried after 1 minute, 5 minutes, 30 minutes, 2 hours and 12 hours. WP-Cron needs visits to run; on low-traffic sites set up a real cron job for wp-cron.php.

The Connection tab says “Disconnected in Waref”

Waref refused the site’s keys: the connection was deleted or paused in Waref, or its secret was rotated. Press Reconnect.

Is my secret visible anywhere?

No. The public key is public (it is in the page source when the snippet or a Waref form is used). The secret stays on your server, is never shown and is stored without autoload.

Reviews

There are no reviews for this plugin.

Contributors & Developers

“Waref Forms” is open source software. The following people have contributed to this plugin.

Contributors

Translate “Waref Forms” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

2.0.2

  • Changed: the Waref address must use HTTPS (plain HTTP only for local development hosts).
  • Changed: a queued or retried submission is sent only to the connection it was captured for.
  • Changed: translations are delivered by translate.wordpress.org.

2.0.1

  • Changed: connects to Waref at https://waref.app by default.

2.0.0

  • New: one-click “Connect to Waref” (no more copying URLs, keys and secrets), with a connection-code fallback.
  • New: zero-setup capture — fields are mapped automatically in Waref; the manual field mapping is gone.
  • New: Elementor Pro, Ninja Forms, Gravity Forms, Fluent Forms, Formidable Forms, Forminator, WooCommerce (customers and orders, classic and block checkout), WordPress comments and registrations.
  • New: a local delivery queue with retries (1 and 5 minutes, 30 minutes, 2 and 12 hours) instead of a single retry.
  • New: campaign (UTM) tracking with a first-party cookie.
  • New: optional snippet fallback for theme forms.
  • New: heartbeat, so Waref shows the plugin version and the active form plugins of the site.
  • Changed: the settings page moved to its own “Waref” menu.

1.0.0

  • First release: shortcode and block embed, Contact Form 7 and WPForms forwarding with field mapping, signed requests, connection test, forwarding log, Arabic and Turkish translations.