polylang-wc-compatibility

polylang-wc-compatibility is a skill for Codex from Lonsdale201/wp-agent-skills. It costs 180 tokens per session (2,734 once invoked), scanned A, original, MIT.

A guide to making WooCommerce shops work with Polylang for WooCommerce, which lets stores maintain products, orders, and checkout in multiple languages.

In plain words
What is it for?
Use it when building multilingual products and variations, translated orders, language-aware carts, REST or Store API checkout, and high-performance order storage.
Why use it?
It keeps product translations, stock, prices, customer details, orders, tax numbers, and checkout language aligned across the shop.

Skill for Codex

Written for Codex: agents/openai.yaml present.

Good fit Use it when building multilingual products and variations, translated orders, language-aware carts, REST or Store API checkout, and high-performance order storage.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/lonsdale201/wp-agent-skills/polylang-wc-compatibility
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Lonsdale201/wp-agent-skills --skill polylang-wc-compatibility
Clone the repo
git clone --depth 1 https://github.com/Lonsdale201/wp-agent-skills

Made for: Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for polylang-wc-compatibility

README.md
[![agentmods](https://agentmods.dev/badge/skills/lonsdale201/wp-agent-skills/polylang-wc-compatibility/github.svg)](https://agentmods.dev/skills/lonsdale201/wp-agent-skills/polylang-wc-compatibility)
Your own site
<a href="https://agentmods.dev/skills/lonsdale201/wp-agent-skills/polylang-wc-compatibility"><img src="https://agentmods.dev/badge/skills/lonsdale201/wp-agent-skills/polylang-wc-compatibility/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for polylang-wc-compatibility

Your own site · 80×15
<a href="https://agentmods.dev/skills/lonsdale201/wp-agent-skills/polylang-wc-compatibility"><img src="https://agentmods.dev/badge/skills/lonsdale201/wp-agent-skills/polylang-wc-compatibility.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 180 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,734 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00180 $0.02734
Opus 5 $0.00090 $0.01367
Sonnet 5 $0.00036 $0.00547
Haiku 4.5 $0.00018 $0.00273

Measured yesterday against content hash ea0f5440f2ed, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

polylang-wc-compatibility scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

polylang/polylang-wc-compatibility/SKILL.md · 246 lines

How it starts

The opening of the file, as written. The whole thing — 246 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Polylang for WooCommerce Compatibility

Use this skill when WooCommerce code must work correctly on a shop using Polylang for WooCommerce.

Polylang WC is not just "Polylang applied to products". It adds Woo-specific data stores, variation sync, stock sync, SKU checks, order language behavior, HPOS handling, Woo REST integration, and Woo settings string translation.

Detect and guard

if ( ! class_exists( 'PLLWC_Data_Store' ) || ! function_exists( 'pll_current_language' ) ) {
    return;
}

Local source checked: Polylang for WooCommerce 2.2.2, minimum Polylang 3.7, WooCommerce required, Woo REST module requires Polylang Pro 3.8+.

Product language store

Use the Woo-aware language store for products and variations:

$store = PLLWC_Data_Store::load( 'product_language' );

$lang = $store->get_language( $product_id );
$fr_id = $store->get( $product_id, 'fr' );
$translations = $store->get_translations( $product_id );

The product store wraps Polylang's post model, but centralizes Woo-specific behavior. Prefer it in Woo integration code.

When creating products programmatically:

$product = new WC_Product_Simple();
$product->set_name( 'Coffee' );
$product->set_regular_price( '12.00' );
$product_id = $product->save();

$store = PLLWC_Data_Store::load( 'product_language' );
$store->set_language( $product_id, 'en' );

After creating a translation, save the group:

$store->set_language( $fr_product_id, 'fr' );
$store->save_translations( array(
    'en' => $product_id,
    'fr' => $fr_product_id,
) );

product and product_variation are added to translated post types but hidden from Polylang settings. Do not let users toggle these manually from your plugin.

Product queries and lang

Polylang filters Woo product queries by current language unless lang is explicitly set.

Use:

$products = wc_get_products( array(
    'status' => 'publish',
    'lang'   => 'fr',
) );

For all languages, pass an explicit empty string:

Read the full file on GitHub · 246 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday Changed · -1 lines ea0f5440f2ed
  2. 8d ago First seen · 247 lines · 180 tokens per session scan A b3492bb3854f

Subscribe to this mod's changes

polylang-wc-compatibility is a skill published in the GitHub repository Lonsdale201/wp-agent-skills (22 stars, last pushed yesterday), licensed MIT. It adds 180 tokens to every session and 2,734 once invoked, about $0.0009 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

localized-pricing

Guide for implementing localized pricing, adaptive currency, and purchasing power parity with Dodo Payments.

dodopayments/skills · 21 tokens

humanizar-texto-es

Elimina patrones de escritura típicos de IA en textos en español de España para que suenen naturales y humanos. Aplica esta skill siempre que generes, edites o revises textos en español: artículos, guías, tutoriales, emails, copy comercial, publicaciones en redes sociales, documentación, informes o cualquier prosa.…

fernandotellado/ai-skills · 119 tokens

chinese-documentation

A Chinese technical-documentation style guide covering spacing, punctuation, numbers, terminology, and links when Chinese and English appear together.

jnMetaCode/superpowers-zh · 62 tokens

shopify-international

Shopify Markets — multi-currency, translation, duties/taxes, localized pricing, market-specific content.

nexscope-ai/eCommerce-Skills · 25 tokens

amazon-global-selling

Evaluate and plan Amazon marketplace expansion across countries and regions. Use when a seller asks which Amazon marketplace to enter, how to compare international demand and economics, what tax, product-compliance, logistics, localization, account, or launch workstreams to investigate, or how to build a gated…

nexscope-ai/Amazon-Skills · 78 tokens

muapi-amazon-product-listing

Generate a complete Amazon product listing image set — hero image, lifestyle shot, infographic with features, and comparison/detail closeups optimized for Amazon standards.

SamurAIGPT/Generative-Media-Skills · 37 tokens