Plugin / what3words Autosuggest Plugin

what3words

Description

Description

This plugin allows you to add searching for, capturing and validating a 3 word address from a form on your WordPress powered site.

Configuration

Enabling the plugin in a post or page

To enable the plugin on a post or page, simply add a text input field, contained inside a form, and add the field’s id to the plugin’s Input Selector(s) configuration option as described below.

what3words API settings

A what3words API key is required to use this plugin as it authenticates and interacts with the what3words RESTful API

If you don’t have a what3words API key yet, you can quickly and easily sign-up and register for one.

General Settings

  • Input Selector(s) – the input fields that the plugin is configured to search for 3 word addresses. These should be specified as a comma
    separated list of jQuery object selectors.

  • Input Placeholder Text – an optional placeholder to be displayed in the input fields that are configured in the Input Selector(s) option.

  • Suggestion Count – by default, the plugin will return 3 suggestions; you can choose to display between 8 and 8 suggestions.

Localisation Settings

  • Input Language – specifies the default language that should be used for searching for 3 word addresses. If Multilingual Search
    is disabled; then only 3 word addresses in the Input Language will be used.

  • Multilingual Search – by default, the plugin searches for 3 word addresses in all languages; you can restrict searches to a single language by
    disabling this option.

  • Enable Country Filtering / Country – by default, 3 word address suggestions will be returned for all countries. You can configure the plugin
    to restrict suggestions to a single country by checking the Enable Country Filtering checkbox and selecting the desired country in the
    Country dropdown.

  • Text Direction – specifies the text scanning direction of the 3 word address search box. Options are Left to right or Right to left (e.g. for Arabic).

WooCommerce Support

The plugin also allows you to automatically add a 3 word address validation field to a WooCommerce checkout form and save the 3 word address against the customer’s order details.

By enabling WooCommerce checkout integration, the #shipping_w3w and #billing_w3w selectors will be automagically added to the list of Input Selector(s).

Filter Support And Usage

what3words AutoSuggest plugin supports a single filter to change the default set of installation settings and options at plugin activation time.

what3wordssearchbox_default_settings

Applied to the default set of plugin settings and options. Note that this filter is called once, upon plugin activation, when there are no what3words AutoSuggest plugin settings/options existing in the database.

Example: Add the date and time that the plugin was first activated

add_filter ('what3wordssearchbox_default_settings', 'add_activation_timestamp');

function add_activation_timestamp ($options) {
    // options = array (option name => option value)
    $options['plugin_activation_timestamp'] = date (DATE_ATOM);

    return $options;
}

DIRECTORY DISCLAIMER

The information provided in this THEME/PLUGIN DIRECTORY is made available for information purposes only, and intended to serve as a resource to enable visitors to select a relevant theme or plugin. wpSocket gives no warranty of any kind, express or implied with regard to the information, including without limitation any warranty that the particular theme or plugin that you select is qualified on your situation.

The information in the individual theme or plugin displayed in the Directory is provided by the owners and contributors themselves. wpSocket gives no warranty as to the accuracy of the information and will not be liable to you for any loss or damage suffered by you as a consequence of your reliance on the information.

Links to respective sites are offered to assist in accessing additional information. The links may be outdated or broken. Connect to outside sites at your own risk. The Theme/Plugin Directory does not endorse the content or accuracy of any listing or external website.

While information is made available, no guarantee is given that the details provided are correct, complete or up-to-date.

wpSocket is not related to the theme or plugin, and also not responsible and expressly disclaims all liability for, damages of any kind, arising out of the use, reference to, or reliance on, any information or business listed throughout our site.

Keep Leading Your Followers!
Share it for them.