Linux 软件免费装
Banner图

Autocomplete Google places

开发者 chroudakais
更新时间 2026年6月16日 17:31
PHP版本: 7.4 及以上
WordPress版本: 7.0
版权: GPLv2 or later
版权网址: 版权信息

标签

autocomplete address autocomplete google address autocomplete autocomplete google address

下载

3.3.0 3.1.0

详情介绍:

This plugin enables Google Places address auto-completion on text input fields (order, checkout and registration pages). When a user starts typing an address and picks a suggestion, the plugin auto-fills the street, city, state, postcode and country fields. You only need a valid Google Places API key. The plugin targets the standard WooCommerce-style billing and shipping address fields (for example billing_address_1 and shipping_address_1). As of version 3.0.0 the front-end script is written in modern, dependency-free vanilla JavaScript (no jQuery required) and the bundled CMB2 settings library has been updated for security.

安装:

  1. Upload the plugin files to the /wp-content/plugins/autocomplete-google-places directory, or install the plugin through the WordPress Plugins screen directly.
  2. Activate the plugin through the Plugins screen in WordPress.
  3. Open the Google Places admin menu (location-pin icon) and enter your Google Places API key.
  4. Save. Autocomplete is now active on pages that contain the supported address fields.

屏幕截图:

  • Address fields auto-filled after selecting a Google Places suggestion.

升级注意事项:

3.0.0 Requires PHP 7.4+ (bundles CMB2 2.12.0). You must enter your own Google Places API key on the settings page; the old hardcoded fallback key has been removed. If you used a publicly exposed key from an older version, rotate or revoke it in Google Cloud. 1.3.4
  • WordPress 5.9 version compatibility.

常见问题:

Is this a paid plugin?

No, it is completely free.

Do I need a Google API key?

Yes. As of 3.0.0 there is no built-in fallback key. Create a key in the Google Cloud Console with the Maps JavaScript API and the Places library enabled, then enter it on the Google Places settings page.

Does it still require jQuery?

No. As of 3.0.0 the front-end script is pure vanilla JavaScript and no longer enqueues jQuery.

Which fields are supported?

The standard WooCommerce-style billing and shipping address fields. When an address is selected, address line 1, city, state, postcode and country are filled automatically.

Can I use it on custom form fields?

Yes. In the "Custom fields (Form ID / class)" setting you can target address fields on most forms (Contact Form 7, Gravity Forms, Elementor, and other standard HTML forms) by ID and/or CSS class. Fields added dynamically (Ajax, modals, multi-step forms) are detected automatically.

It does not work on a field built with React or Vue. Why?

Some plugins and themes build their address fields with a JavaScript framework such as React or Vue, where the field value is fully controlled by the framework. On those fields, no external autocomplete (including this one) can attach reliably, because the framework re-renders the input and overrides external changes. This is a limitation of how those frameworks work, not of this plugin. Standard HTML fields are fully supported. Improved support for framework-based fields is planned for a future release.

更新日志:

3.3.0 3.2.0 3.1.0 3.0.0