polylang-pro-slugs-sync-acf

polylang-pro-slugs-sync-acf is a skill for Codex from Lonsdale201/wp-agent-skills. It costs 150 tokens per session (2,405 once invoked), scanned A, original, MIT.

A guide to Polylang Pro features for translated WordPress URLs, synchronized content, and Advanced Custom Fields (ACF) data. ACF is a WordPress tool for adding custom fields to content.

In plain words
What is it for?
Use it when a plugin or theme works with translated URL slugs, shared slugs, duplicate or synchronized posts, ACF fields, imports, or machine translation.
Why use it?
It helps code account for Pro-only behavior instead of treating it like standard Polylang. This prevents incorrect slugs, synchronization, or custom-field translations.

Skill for Codex

Written for Codex: agents/openai.yaml present.

Good fit Use it when a plugin or theme works with translated URL slugs, shared slugs, duplicate or synchronized posts, ACF fields, imports, or machine translation.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/lonsdale201/wp-agent-skills/polylang-pro-slugs-sync-acf
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-pro-slugs-sync-acf
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-pro-slugs-sync-acf

README.md
[![agentmods](https://agentmods.dev/badge/skills/lonsdale201/wp-agent-skills/polylang-pro-slugs-sync-acf/github.svg)](https://agentmods.dev/skills/lonsdale201/wp-agent-skills/polylang-pro-slugs-sync-acf)
Your own site
<a href="https://agentmods.dev/skills/lonsdale201/wp-agent-skills/polylang-pro-slugs-sync-acf"><img src="https://agentmods.dev/badge/skills/lonsdale201/wp-agent-skills/polylang-pro-slugs-sync-acf/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-pro-slugs-sync-acf

Your own site · 80×15
<a href="https://agentmods.dev/skills/lonsdale201/wp-agent-skills/polylang-pro-slugs-sync-acf"><img src="https://agentmods.dev/badge/skills/lonsdale201/wp-agent-skills/polylang-pro-slugs-sync-acf.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 150 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,405 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.00150 $0.02405
Opus 5 $0.00075 $0.01203
Sonnet 5 $0.00030 $0.00481
Haiku 4.5 $0.00015 $0.00241

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

Security

Grade A, and why

polylang-pro-slugs-sync-acf 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 8d ago.

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-pro-slugs-sync-acf/SKILL.md · 254 lines

How it starts

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

Polylang Pro Slugs, Sync, and ACF

Use this skill when compatibility depends on Pro-only behavior rather than the core Polylang API.

Polylang Pro 3.8.5 adds major behavior in three areas:

  • translated and shared slugs;
  • duplicate/sync workflows;
  • ACF Pro integration.

Guard Pro-only code:

if ( ! defined( 'POLYLANG_PRO' ) ) {
    return;
}

Translated rewrite slugs

Polylang Pro translates rewrite slugs through strings translation. The model scans registered post types, archives, taxonomies, post formats, and miscellaneous bases such as author, search, attachment, page, and the front base.

It stores the computed map in the transient pll_translated_slugs and refreshes rewrite rules after string translations are saved.

Add your plugin's custom slug source with:

add_filter(
    'pll_translated_slugs',
    static function ( array $slugs, PLL_Language $language, PLL_MO $mo ): array {
        $source = 'courses';

        $slugs['myplugin_courses']['slug'] = $source;
        $translated = $mo->translate( $source );
        $slugs['myplugin_courses']['translations'][ $language->slug ] = $translated ?: $source;

        return $slugs;
    },
    10,
    3
);

Rules:

  • Register CPTs and taxonomies before wp_loaded; Pro initializes translated slugs on wp_loaded priority 1.
  • Flush rewrite rules when your base slug changes, not on every request.
  • Do not read get_option( 'rewrite_rules' ) and mutate rules manually. Hook Polylang's slug filters and let the model rebuild.
  • Expect object caches: Pro deletes the transient option row explicitly when an external object cache is active.

Shared slugs

Polylang Pro can allow translated posts or terms to share the same slug in different languages. It filters slug uniqueness and query resolution by language.

Compatibility rule: never assume post_name or term slug is globally unique.

Bad:

$post = get_page_by_path( $slug, \OBJECT, 'page' );

Safer:

$post_id = pll_get_post( $source_post_id, $target_lang );

Read the full file on GitHub · 254 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. 8d ago First seen · 254 lines · 150 tokens per session scan A e61f2f22d0d8

Subscribe to this mod's changes

polylang-pro-slugs-sync-acf is a skill published in the GitHub repository Lonsdale201/wp-agent-skills (22 stars, last pushed yesterday), licensed MIT. It adds 150 tokens to every session and 2,405 once invoked, about $0.0007 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

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

json-ui

CRITICAL: Use for json-ui component rendering and development. Triggers on: json-ui, json render, component catalog, report render, HTML report, I18nString, i18n, bilingual, language switch, dual language, PaperHeader, AuthorList, Abstract, MetricsGrid, Section, Highlight, Zod schema, catalog.ts, cli.ts…

actionbook/actionbook · 118 tokens

comet-bilingual-docs

A workflow for keeping Comet documentation in Chinese and English aligned across READMEs, skills, release notes, and website pages. It preserves confirmed wording, repository structure, examples, commands, links, and configuration names.

rpamis/comet · 70 tokens

dubbing

Dub audio and video into other languages using the ElevenLabs Dubbing API (dubbingv2), preserving the original speakers' voices. Use when translating videos, podcasts, or recordings into other languages, localizing media content, reviewing or correcting dubbing transcripts and translations, or regenerating a dub after…

elevenlabs/skills · 65 tokens

iflytek-text-proofread

A tool that checks Chinese writing through iFlytek’s official document-proofreading service. It looks for spelling, punctuation, wording, factual, terminology, and sensitive-content problems.

iflytek/iFly-Skills · 88 tokens