Album Importer for Google Photos lets you quickly import images from a public Google Photos album into your WordPress site and show them as a gallery. Add the block to any post or page, paste a Google Photos album URL, and start the import — the images are added to your Media Library and displayed automatically.
Use a publicly shared Google Photos album URL, for example:
https://photos.app.goo.gl/XXXXXXXXXXXXXXXXX
This plugin relies on Google Photos (a third-party service operated by Google LLC) to read and import publicly shared album content. No data is sent to any external service unless an authorized user explicitly provides a Google Photos album URL to the plugin. There are two entry points that trigger requests to Google:
What it is and what it is used for: Google Photos is Google’s photo hosting and sharing service. The plugin uses it to fetch the contents of a publicly shared album so the images can be saved into the WordPress media library and rendered as a gallery.
What data is sent and when:
photos.google.com or photos.app.goo.gl to retrieve the album’s public HTML page and parse the list of image URLs.src of an <img> tag. This causes the editor user’s browser to make HTTP GET requests to lh3.googleusercontent.com for each thumbnail.lh3.googleusercontent.com to read the Content-Disposition header (the import continues even if this request fails).lh3.googleusercontent.com to download the image bytes and store them as a WordPress media attachment.Use of Google’s services is subject to Google’s terms:
The full, unminified source code for this plugin — including the JavaScript and CSS sources used to generate the compiled files in assets/js/build/ and blocks/build/ — is publicly available on GitHub.
Build tools and instructions:
@wordpress/scripts (webpack) via npm.npm cinpm run buildcomposer install --no-dev --optimize-autoloaderbuild.sh script in the repository produces a distributable ZIP that mirrors the version published here.assets/js/src/ (e.g. style.scss) and blocks/src/album/ (e.g. editor.scss). They are compiled by @wordpress/scripts into the assets/js/build/ and blocks/build/ directories.