Get Post Translations

Before translating or linking anything, your AI needs to know what already exists.

content/list-post-translations returns every translation of a post as language code → post ID.

At a glance

Abilitycontent/list-post-translations
ToolsetContent — toolset/content
GroupTranslations › Posts
RequiresPolylang or WPML, active on the site
Capabilitymanage_options
SafetyRead-only — changes nothing
RepeatableIdempotent — running it twice leaves the same result
Ships inAcrossAI Abilities Manager 0.1.0 and later

How it works

Pass the post_id.

It detects Polylang first, then WPML, and returns an error if neither is active.

It changes nothing.

Input

NameTypeRequiredWhat it is
post_idintegerYesThe post or page ID.

What comes back

NameTypeWhat it is
driverstringWhich plugin answered.
translationsobjectLanguage code → post ID for every translation.
successbooleanWhether the call completed.
messagestringA one-line summary of what happened, suitable for showing a human.
error_codestringPresent only on failure — a stable machine-readable reason, such as a missing field, a wrong field type or an unmet confirmation.

Example

Ask your assistant:

Which translations does the About page have?

It resolves to one call:

{
  "ability": "content/list-post-translations",
  "parameters": {
    "post_id": 12
  }
}

Worth knowing

  • Read-only.
  • A language missing from the map has no linked translation yet.

Related abilities


Get the plugins:
AcrossAI Abilities Manager · AcrossAI MCP Manager

Browse the rest: Every ability, by category


Keep reading