wc-product-copy is a WordPress plugin for WooCommerce stores. It writes a description and a short description for each product from the store’s own data, as drafts that an editor reads, edits and accepts. It is MIT licensed, and v0.1.0 was released on 18 November 2026.
It was written from scratch from an idea, as part of a set of utilities built between 11 and 19 November 2026 by language-model coding agents under the editor’s direction. It has not run on a live store.
A store with a few hundred products usually has many with an empty description. Writing them by hand is slow, so they stay empty. Empty pages look abandoned and give search engines nothing to index.
Pasting product data into a chat window is slow too, and it fails in known ways. The model invents a material, a size or a warranty. It states prices or delivery promises that are wrong a week later. A careless bulk script overwrites descriptions the owner wrote by hand. A loop with no cap spends money all night on retries. The output arrives as Markdown, or with scripts and links, and gets pasted into the page.
wp product-copy commands, plus an admin settings page, a meta box and a drafts screen.The facts come from writer notes, brands, product type, category paths, attributes (term names, never slugs), weight and dimensions, tags and optionally codes. Prices, stock, shipping, tax, reviews, orders, customers, URLs and the current descriptions are never sent, even if a filter tries to add them.
Planner::evaluate() decides whether a product is eligible. The dry run and every queued job call the same method, so the two cannot drift apart. Each product is one job, keyed by its input hash, so pressing the button twice queues nothing new. Jobs run through gen-queue if it is active, otherwise through Action Scheduler.
A job reads the switch and caps afresh, locks the product, checks eligibility again, asks spend-meter if it is active, and makes one call through a ModelCaller seam. The built-in adapter uses llm-json-php and is text only. A site that wants the product image sent supplies its own caller through the product_copy_caller filter. The prompt is built in, or comes from a prompt-library template when that plugin is active.
At accept time the field is read again. If a person filled it in the meantime, accept is refused and the draft is shown for copying. Otherwise the text is cleaned a second time, saved through the WooCommerce product object, and its hash is stored so a later human edit is recognised. No custom tables are used.
wp product-copy generate --missing=any --dry-run
wp product-copy generate --missing=any --yes
wp product-copy drafts --state=pending
wp product-copy accept 123 --user=editor
wp product-copy pause, a button on the drafts screen, or a constant. A call already in flight finishes. No new call starts.<title> and <facts> blocks that the system text marks as data, with closing tags neutralised.promptlib_*, and the spend-meter intent key is est_input_tokens. A 200-character model name used to throw on init in gen-queue, and a null unit count threw after a draft had already been saved.INSERT IGNORE. The cap check and the attempt count were also joined into one locked step so counts are not lost.There are no open issues. This is v0.1.0, tested on stubs and mocks. The test suite has 101 tests and 639 assertions, run against stubs and mocks, and static analysis and code style checks pass. CI has not yet run on GitHub.
Requires PHP 8.1 or later, WordPress 6.4 or later and WooCommerce 8.0 or later. The release zip bundles its one runtime dependency. From source:
cd wp-content/plugins
git clone https://github.com/IndianOpinion/wc-product-copy.git
cd wc-product-copy
composer install --no-dev --optimize-autoloader