| 开发者 | chroudakais |
|---|---|
| 更新时间 | 2026年11月10日 04:23 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
/wp-content/plugins/autocomplete-google-places directory, or install the plugin through the WordPress Plugins screen directly.No, it is completely free.
Yes. In the Google Cloud Console, enable the Maps JavaScript API and Places API (New) for your key, then enter it on the Google Places settings page. Restrict the key to your website (HTTP referrers) so nobody else can use it.
No. In the default "Automatic" mode the plugin tries Places API (New) first and falls back to the legacy Places API when your key is not enabled for the new one. The Test API key button shows which API works with your key. Enabling Places API (New) on your key is recommended, because Google no longer offers the legacy API to new customers.
WooCommerce classic and block checkout billing and shipping addresses, and My Account addresses. When an address is selected, address line 1, city, state, postcode and country are filled automatically, and WooCommerce recalculates shipping.
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 HTML forms) by ID and/or CSS class. Fields added later by JavaScript (Ajax, React or Vue forms, modals, multi-step forms) are detected automatically.
On WooCommerce stores, the script loads on the pages WooCommerce reports as checkout or My Account. For a custom checkout page, add this to your theme or a code snippets plugin:
add_filter( 'autocomplete_gp_load_on_page', '__return_true' );
You can also add your field in the "Custom fields" setting, which loads the script on every page.
Suggestions are requested after 3 characters, with a short pause while typing, and Google sessions are used so a completed address is billed as one session. To wait for more characters:
add_filter( 'autocomplete_gp_min_chars', function () { return 4; } );
No. The front-end script is pure JavaScript.