diff --git a/docs/concepts/index.md b/docs/concepts/index.md index a3cfe55e..e7066668 100644 --- a/docs/concepts/index.md +++ b/docs/concepts/index.md @@ -64,7 +64,7 @@ Remote data blocks are custom blocks, but they are created and registered by our ## Data fetching -The plugin handles data fetching and wraps[`wp_remote_request`](https://developer.wordpress.org/reference/functions/wp_remote_request/). +The plugin handles data fetching and wraps [`wp_remote_request`](https://developer.wordpress.org/reference/functions/wp_remote_request/). When a request to your site renders one or more remote data blocks, our plugin will fetch and potentially cache the remote data. Multiple requests for the same data within a single page load will be deduped, even if the requests are not cacheable. diff --git a/docs/quickstart.md b/docs/quickstart.md index df8f51ee..0cbabed2 100644 --- a/docs/quickstart.md +++ b/docs/quickstart.md @@ -10,13 +10,13 @@ Download [the latest release of the plugin](https://github.com/Automattic/remote ## Step 2: Create a data source -In the WordPress admin, go to **Settings** > **Remote Data Blocks** and click **Connect new**. Give the data source a display name and enter `http://www.zippopotam.us/us/` as the URL. Save the data source. +In the WordPress admin, go to **Settings** > **Remote Data Blocks** and click **Connect new**. Give the data source a display name and enter `https://api.zippopotam.us/us/` as the URL. Save the data source. Back on the data source list, click the three dots on the right of the row for your new data source and copy the UUID. ## Step 3: Copy the zip code data source example -Copy the [zip code data source example](../example/rest-api/zip-code/register.php) into your `/plugins` directory and then activate the plugin. +Copy the [zip code data source example](../example/rest-api/zip-code/zip-code.php) into your `/plugins` directory, set `EXAMPLE_ZIP_CODE_DATA_SOURCE_UUID` to the UUID copied above and then activate the plugin titled `Zip Code RDB Example`. ## Step 4: Customize the configuration @@ -24,4 +24,4 @@ Try making changes to the configuration. For example, rename the block in the `r ## Step 5: Test the block -Go to the page where you want to use the block and add the block to the page. +Go to the page where you want to use the block and add the block to the page. Click `Provide manual input`, enter a US ZIP code and then hit save. Then, choose a pattern to use to display the data on the page.