WordPress Installation Guide

WordPress eCommerce integrations

Find Data8’s WordPress Installation Guide here to get started with your data validation journey. Our plugin for WordPress supports the following features:

  • PredictiveAddress
  • Phone Validation
  • Email Validation
  • Unusable Name Validation
  • Bank Validation (Not supported for WooCommerce)

WordPress Plugin Compatibility

Our WordPress plugin integrates with Contact Form 7, Gravity Forms, WPForms, Elementor Pro or WooCommerce forms to apply real-time validation to your forms.

The following versions have been tested for compatibility:

WordPressPHPContact Form 7WooCommerceGravity FormsWPFormsElementor Pro
4.55.6.244.6.12.2.32.4.6.12
4.6.15.6.284.6.12.2.32.4.6.12
4.85.6.325.1.13.5.62.4.6.12
4.9.87.2.125.1.13.5.62.4.6.12
5.07.2.155.1.13.5.62.4.6.12
5.17.2.155.1.13.5.62.4.6.12
5.1.17.2.165.1.13.5.62.4.6.12
5.27.2.165.1.13.5.62.4.6.12
5.2.17.3.65.1.33.5.62.4.6.12
5.2.27.3.65.1.33.5.62.4.6.12
5.2.37.3.65.1.33.7.02.4.6.12
5.2.47.3.105.1.43.7.12.4.6.12
5.37.3.105.1.43.7.12.4.6.12
5.3.17.3.105.1.63.8.12.4.6.12
5.3.27.3.135.1.63.8.12.4.6.12
5.4.17.3.135.1.94.3.02.4.6.12
5.5.17.3.135.2.24.3.02.4.6.12
5.68.05.3.24.8.02.5- beta-3
5.7.27.4.195.4.15.3.02.5.5
5.8 beta rc27.4.215.4.15.3.02.5.6.1
5.97.4.275.4.46.1.12.5.16.11.7.2
5.9.17.4.275.5.66.3.02.5.16.11.7.2.23.6.3
6.07.4.275.5.66.5.12.6.31.7.4.13.6.4
6.27.4.305.7.5.17.5.12.7.31.8.1.13.12.1

 

Installation

To install the Data8 WordPress plugin, log in to the admin area of your WordPress site (/wp-admin). From the left side menu select ‘Plugins’, and then at the top of the new screen, ‘Add New’. Find the Data8 Validation plugin from the WordPress marketplace. Follow the installation wizard (‘Install Now’ button) to get the plugin installed on your site.

On the plugins page of the admin area, you should now see the Data8 Validation plugin. From here you can activate and then configure the settings to suit your individual needs.

Should you ever wish to uninstall the Data8 WordPress Plugin, either ‘De-activate’ (for temporary removal), or ‘Delete’ it from the ‘Plugins’ page on the admin area of your site.

 

Configuration

From the Data8 settings page (accessed from the left side menu of the admin area of your site) you can enable and choose the validation options that suit your needs.

On the configuration screen, enter your server and client-side API keys generated from the Data8 Dashboard. Each validation service requires the necessary credits to function.

PredictiveAddress Options

When the PredictiveAddress service is enabled, the PredictiveAddress Options box will become visible. This box can be left blank to use the default configuration of PredictiveAddress. However, should you wish to customise your integration, you can do so by entering any combination of the options available for the Predictive Address service.

For example, enter the following into the Predictive Address options box to detect the initial country in the Predictive Address search, from the users IP address:

				
					initialCountry: auto
				
			
PredictiveAddress  ///what3words integration

You can search for any 3 word address by simply typing out the three words like so “pitch.tells.civil”.

what3words Address

If you wish to store the 3 word address that was used to retrieve the final address, add the class data8_what3words to an input field to indicate where we should store the what3words address.

what3words Location

If you wish to use what3words to get a more precise latitude and longitude, you will need to pass in the options:

				
					includeLocation: true
includeWhat3Words: true
				
			

and then add the classes: data8_latitude and data8_longitude to some text inputs to indicate where to store the returned data.

Telephone Validation Options

When Telephone Validation is enabled, all suitable telephone number fields are validated automatically. There are also some other options available to you for further control of validation: Default Country Code, Required Country, Allowed Prefixes, Barred Prefixes.

OptionDescription
Default Country CodeThe ISO 2-character country code or international dialling code of the country to validate the telephone number in, unless that number contains an explicit country code prefix.
Required CountryIndicates the country that the number must be in to be considered valid. This should be provided as the ISO 2-character country code.
Allowed PrefixesA comma-separated list of prefixes in standard international format that the number must start with to be treated as valid. For example, use “+441,+442” to allow only standard UK landline numbers.
Barred PrefixesA comma-separated list of prefixes in standard international format that will cause the number to be treated as invalid. For example, use “+90,+447781” to block any Indian numbers or numbers allocated to C&W Guernsey.

You can also use any of the other advanced options available for Phone Validation by adding them to the Options box which will become visible when Phone Validation is enabled.

For example, enter the following into the Phone Validation options box to invalidate any unlikely numbers even if they are technically valid, such as 07000000000:

				
					ExcludeUnlikelyNumbers: true
				
			
Email Validation Levels:

When Email Validation is enabled, all suitable email address fields are validated automatically. The level of validation to apply to entered email addresses can be selected from a drop down on the settings page. See the table below for information on each level.

LevelDescription
SyntaxThe supplied email is checked to ensure that it meets the standard email address format. This is the quickest option and would reject such incorrect email addresses as “noone@nowhere” and “N/A”, but would accept incorrect email addresses that are correctly formed but that do not include a valid domain name such as “[email protected]”.
DomainThe supplied email is checked to ensure that the domain name (the part to the right of the @ sign) exists and is set up to receive email. This is still normally very quick, but can take a few seconds in some cases. This check would reject incorrectly formatted email addresses in the same way as the Syntax check, and would also reject a misspelled domain name such as “[email protected]”. It can also detect when a domain name exists but does not handle email, such as “[email protected]”. It does not verify that the part of the email address to the left of the @ sign exists.
ServerIn addition to the Domain level checks, validates that at least one of the mail servers advertised for the domain is actually live.
AddressIn addition to the Server level checks, validates that the mail server accepts mail for the full email address.

Usage

After entering your configuration details and clicking save, the relevant enhanced data capture and validation will be applied to various data entry points around your site, assuming they are set up correctly following the attachment instructions on the configuration page.

For instructions on setting up the fields for each service, please refer to the section appropriate for the form builder plugin you are using on your site i.e. Contact Form 7, Gravity Forms, WPForms, Elementor Pro or WooCommerce.

PredictiveAddress

When PredictiveAddress is enabled, any suitable address entry section on your forms will have use of our address autocomplete and verification tool. Simply begin typing an address/postcode/company name into the Address line 1 box to start searching and narrowing down results.

Validation

If entered data is identified as invalid, the error will be highlighted suitably on the form.

Join the Conversation

Receive the latest news, views and hot topics directly in your inbox! Sign up below

Follow us on social media