Geoapify Autocomplete WP Registry grade A. No security issues foundWP RegistryNo security issues foundOpen the reportA
Lightweight WordPress plugin that adds Geoapify-powered address autocomplete to existing forms.
Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/guisfus/wp-geoapify-autocomplete/archive/refs/heads/main.zipA lightweight WordPress plugin that adds Geoapify-powered address autocomplete to existing forms and automatically fills city, state and postal code fields.
Features
- Works with plain HTML forms and common WordPress form builders.
- Supports multiple form mappings from the WordPress admin.
- Supports direct HTML integration with
data-*attributes. - Handles dynamically injected forms and popups.
- Provides keyboard navigation and ARIA live status updates.
- Loads frontend assets only when an API key is configured.
Requirements
- WordPress 5.8 or later.
- PHP 7.4 or later.
- A Geoapify API key.
Installation
The GitHub repository uses the wp- prefix only to identify it as a WordPress plugin repository. When installing the plugin in WordPress, use the plugin folder name without the wp- prefix.
Correct plugin folder:
wp-content/plugins/geoapify-autocomplete/
Correct ZIP structure:
geoapify-autocomplete.zip
`-- geoapify-autocomplete/
|-- geoapify-autocomplete.php
|-- includes/
|-- assets/
|-- README.md
|-- readme.txt
`-- LICENSE
Do not install it as:
wp-content/plugins/wp-geoapify-autocomplete/
Backend installation:
- Create a ZIP with
geoapify-autocomplete/as the root folder. - In WordPress, go to Plugins > Add New > Upload Plugin.
- Upload
geoapify-autocomplete.zip. - Activate Geoapify Autocomplete.
- Go to Settings > Geoapify.
- Add your Geoapify API key.
- Restrict the API key by HTTP referrer/domain in Geoapify before using it in production.
Manual installation:
- Upload the
geoapify-autocompletefolder towp-content/plugins/. - Activate Geoapify Autocomplete from the WordPress plugins screen.
- Go to Settings > Geoapify and configure your API key.
Usage
Admin Mapping
In the plugin settings, add the ID of the address input and the optional IDs for city, state and postal code fields.
HTML Attributes
Add attributes directly to the address input:
<input
data-geoapify="address"
data-geoapify-city="#city"
data-geoapify-state="#state"
data-geoapify-zip="#postcode"
>
Security
This plugin calls Geoapify from the browser, so the API key is intentionally exposed client-side. This is normal for browser-based autocomplete integrations.
For production websites, restrict your Geoapify API key by allowed HTTP referrers/domains in the Geoapify dashboard.
Additional security notes:
- Only users with
manage_optionscan edit plugin settings. - Settings are saved through the WordPress Settings API and sanitized before storage.
- Field mappings accept plain HTML IDs from the admin screen.
- HTML data attributes are read from frontend markup and used as CSS selectors only after guarded
querySelector()calls. - Suggestions are rendered with
textContent, not HTML injection. - The plugin does not create AJAX endpoints, REST routes, cookies, user tracking, or server-side external requests.
Frontend Footprint
- Loads
assets/css/frontend.cssandassets/js/frontend.jsonly when an API key is configured. - Exposes
window.GeoapifyAutocompleteConfigwith public autocomplete settings. - Adds dropdown/status elements to
document.bodywhile autocomplete fields are active. - Marks bound address inputs with
data-geoapify-autocomplete-bound="1"to avoid duplicate bindings.
Developer Filter
The frontend configuration can be customized with:
add_filter( 'geoapify_autocomplete_public_config', function ( $config, $settings ) {
$config['countryCode'] = 'es';
return $config;
}, 10, 2 );
License
Geoapify Autocomplete is licensed under GPL-2.0-or-later. See the LICENSE file for details.
Releases
3 releases.
These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.