Description
A visitor ticks a Wereldkundig subscribe me checkbox on a Gravity Forms form. On submit, the add-on sends their email address (and name, and any other fields you map) to your Wereldkundig platform, which subscribes them to the themes, or only some of their categories, chosen in the form’s Wereldkundig feed for that checkbox.
- A Wereldkundig subscribe me consent checkbox for the form editor.
- A Wereldkundig feed per checkbox that chooses the themes and categories, maps the email address, names and other subscriber fields, and adds conditional logic. Without a feed, nothing is sent.
- Subscribers are sent in the background right after the submit; the result is added to the entry as a note.
- The themes and subscriber fields are fetched from the platform when you save the settings and refreshed every hour.
- The Basic Auth code is never shown in full, and can be kept out of the database with constants in
wp-config.php. - Works on single sites and multisite networks, with settings per site.
Nothing is sent unless the visitor checked the box.
The add-on requires Gravity Forms 2.5 or later and a Wereldkundig platform with the Basic Auth code Wereldkundig supplies for it.
External services
This plugin connects to the Wereldkundig platform you configure under Forms > Settings > Wereldkundig (or with the WK_GF_API_URL constant). It is needed to fetch your themes and to subscribe the people who fill in your forms. Every request carries the Basic Auth code you entered, and only goes over https://.
- Fetching the themes and subscriber fields (
GET /v1/subscribe/fields): when you save the settings, and once an hour in the background while the platform is configured. No personal data is sent. - Subscribing (
POST /v2/subscribe): when a visitor submits a form with the Wereldkundig subscribe box checked. It sends the email address, the names and other fields mapped in the feed, the chosen themes and categories, and whether existing subscribers may be updated. Nothing is sent when the box is not checked.
The service is provided by Wereldkundig: wereldkundig.nl, Gravity Forms Add on documentation at gravityforms.wereldkundig.nl and API documentation at docs.wereldkundig.nl/api.
Installation
- Install and activate Gravity Forms 2.5 or later.
- Upload the plugin through Plugins > Add New Plugin, or put the
wereldkundig-for-gravity-formsfolder inwp-content/plugins/. - Activate the plugin. On multisite, network-activate it.
- Go to Forms > Settings > Wereldkundig, enter the platform URL and Basic Auth code, and save.
- Add a Wereldkundig subscribe me field to a form, then add a Wereldkundig feed under Form Settings > Wereldkundig that chooses its themes and the email field. With more than one subscribe field on the form, the feed also chooses the checkbox.
FAQ
-
Where do I get the platform URL and Basic Auth code?
-
From Wereldkundig, for your own platform.
-
Can I keep the Basic Auth code out of the database?
-
Yes. Define
WK_GF_API_URLandWK_GF_API_AUTHinwp-config.php; each constant wins over its field on the settings page. -
Why does the feed say it could not load the themes?
-
The add-on hasn’t fetched them yet, or the platform can’t be reached. Check the connection under Forms > Settings > Wereldkundig and save the settings to fetch the themes again.
-
How do I know a subscriber was sent?
-
Open the entry. Its notes say whether the subscriber was sent, or why not.
Reviews
There are no reviews for this plugin.
Contributors & Developers
“Wereldkundig for Gravity Forms” is open source software. The following people have contributed to this plugin.
ContributorsTranslate “Wereldkundig for Gravity Forms” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
Changelog
1.1.1
- Remove Dutch translation files from repo so they can be translated via translate.wordpress.org
1.1.0
- Feed setting to update an existing subscriber on the Wereldkundig newsletter platform (off by default).
- Subscribe via
POST /v2/subscribe; entry notes distinguish a new subscriber from an updated one.
1.0.0
- First release.