The problem
When moving from WPML to Polylang, the shop lost the link between each product and its translation, and between categories and tags too. Checking it by hand, product by product, was not realistic, and touching the live shop without knowing the real scope was a risk.
The plugin
Claude WP Bridge gives the AI a small, guarded door into WordPress: four functions (status, site map, cross-language link audit and activity log) covering only what WordPress core does not offer. It only reports; it never rewrites. The audit reads the links in the content, including those inside shortcodes, and resolves them to products or categories.
Security
- Two separate credentials: a WordPress application password and a token of its own. With only one, the request is rejected.
- The token is generated from 32 random bytes, shown only once, and only its fingerprint (HMAC-SHA256) is stored.
- HTTPS only: without a secure connection, the routes do not even exist.
- No clues: versions are hidden from anyone not authenticated, and only an administrator can see the activity log.
The migration
The migration scripts run in dry-run mode by default and can be repeated without double effects. They were rehearsed first on a copy of the shop with real data and then applied to the live shop. The plugin was only ever installed on the copy.
- 118/122products relinked to their translation
- 11 + 3categories and tags recovered
- 252order lines identical before and after
Result
The audit found the real scope of the problem without touching anything, and the migration was applied to the shop after confirming on the copy that orders did not change.