All features

Cherry Blossom feature

Gravity Forms: Provider interface

Defines a regional address lookup provider.

Defines a regional address lookup provider.

Capabilities and extension points

Gets the provider identifier.

  • return string Provider identifier.

Determines whether the provider supports a country.

  • param string $country ISO country code.
  • return bool Whether the country is supported.

Looks up an address.

Successful results use street, house_number, addition, postcode, city, state and country keys where values are available.

  • param string $postcode Postal code.
  • param string $house_number House number.
  • param string $addition Optional house-number addition.
  • param string $country ISO country code.
  • return array|\WP_Error Address data or an error.

Source reference

This editable reference page is based on the PHP documentation in plugins/gravity-forms/address-lookup/interfaces/interface-provider.php.