WP Manifestindependent plugin directory
manifest / integrations / isbnlab-wordpress

ISBNLab Book Data

Official WordPress plugin for ISBNLab: fill WooCommerce products from an ISBN and show books with a block or shortcode.

★ 0stars

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/isbnlab/isbnlab-wordpress/archive/refs/heads/main.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

ISBNLab Book Data for WordPress

A WordPress plugin for the ISBNLab book metadata API. Paste your ISBNLab API token, then:

  • WooCommerce: fill a product from an ISBN. The ISBNLab box on the product screen looks up the book, shows a preview, and fills in the name, description, cover image, attributes (author, publisher, format, pages, …), the GTIN/ISBN field and, if you want, the SKU.
  • Any site: show a book with the ISBNLab Book block or [isbnlab_book isbn="9780765302304"]. Each card includes schema.org Book structured data.

Try it in your browser: a live WordPress with WooCommerce and the plugin, running in WordPress Playground. No account needed: without a token the plugin works with one example book, ISBN 978-0-7653-0230-4 (bundled in assets/example, a copy of this sample). Paste a free token on Settings > ISBNLab to look up any ISBN.

readme.txt is the WordPress.org listing and the user documentation.

Requirements

WordPress 6.3+, PHP 7.4+. WooCommerce 8.0+ for the product box (the GTIN field needs 9.2+). An ISBNLab account: register; the Free plan has 1,000 calls a day.

Install from source

bin/package                 # dist/isbnlab-<version>.zip, from the last commit

Upload the zip under Plugins > Add New > Upload Plugin, then go to Settings > ISBNLab. The token can also live in wp-config.php:

define( 'ISBNLAB_API_TOKEN', 'ilp_...' );

How it works

File What it does
includes/class-isbnlab-client.php Calls the API with wp_remote_get() (no bundled HTTP library to clash with other plugins). Caches books in transients, and "not found" for an hour.
includes/class-isbnlab-isbn.php Checks ISBN-10/13 checksums and converts 10 to 13 locally, so a typo never uses a call.
includes/class-isbnlab-book.php Turns a GET /api/book/isbn/{isbn} response into plain values, coping with any missing field.
includes/class-isbnlab-woocommerce.php The product box: "Look up" previews, "Apply to product" saves through WooCommerce's CRUD classes (HPOS-safe) and reloads.
includes/class-isbnlab-display.php The block (blocks/book, server-rendered) and the shortcode.
includes/class-isbnlab-settings.php Settings > ISBNLab. The saved token is never printed back into the page.

There is no build step: the block's editor script is plain JavaScript on WordPress's own wp.* packages, with its dependencies listed by hand in blocks/book/index.asset.php.

The plugin calls only GET /api/book/isbn/{isbn} (lookups) and GET /api/isbn/isbn-lookup/{isbn} (Test connection), and sends Accept: application/json on every request.

The Playground demo

playground/blueprint.json installs WooCommerce and this repository's main branch, then runs playground/setup.php, which fills a product from the example book and makes the demo page. Both are left out of the plugin zip. WordPress.org's Live Preview button can use the same blueprint once it is copied to the listing's assets/blueprints/blueprint.json.

In Playground the plugin's API calls are made by the visitor's browser, so a pasted token only works once www.isbnlab.com allows CORS requests from https://playground.wordpress.net. The example book needs no request.

Tests

Everything runs in Docker:

bin/test          # php -l and tests/unit.php on PHP 7.4 and 8.4
bin/smoke-test    # a throwaway WordPress + WooCommerce, the plugin, tests/smoke/checks.php,
                  # a front-end page check, then the WordPress.org Plugin Check
KEEP=1 bin/smoke-test   # same, and leave the site at http://localhost:8089 (admin / admin)
ISBNLAB_API_TOKEN=ilp_... bin/live-test   # the same site against the real API (about 8 calls)

bin/live-test passes the token only as an environment variable; never write it to a file.

The smoke test never calls isbnlab.com: tests/smoke/fake-api.php answers API and cover requests from tests/fixtures (copied from isbnlab-php's fixtures, which are real responses).

Licence

GPL-2.0-or-later, like WordPress (see LICENSE). Copyright (c) 2026 RINC Productions, LLC (ISBNLab).