๐—”๐—จ๐—ง๐—ข-๐—ฃ๐—ข๐—ฃ๐—จ๐—Ÿ๐—”๐—ง๐—˜ ๐—–๐—™๐Ÿณ ๐—™๐—œ๐—˜๐—Ÿ๐——๐—ฆ ๐—ฆ๐—”๐—™๐—˜๐—Ÿ๐—ฌ

You want CF7 to fill fields using an API. Most developers call the API from JavaScript. This is a mistake. It exposes your API key in the browser. People steal your key. They use your credits.

Use a two-hop system. Your browser talks to your WordPress server. Your server talks to the API. Your API key stays hidden in your wp-config.php file.

The workflow:

Follow these tips:

Source: https://dev.to/rahul_sharma_15bd129bc69e/how-to-use-a-cf7-field-to-query-an-external-api-and-populate-other-fields-285h