plugin
polylangPolylang Abilities
Multilingual integration. Translation languages and routing configuration. Read-only diagnostic.
3Total Abilities
0Destructive
1Capability Gates
Functional Domains:
Multilingual
WordPress capabilities required:
manage_options 3Available Tools (3)
pll_get_languagesmanage_optionsList Polylang's configured languages: code (slug), display name, locale, right-to-left flag, flag code, and which one is the default. Read-only.
Parameter Schema0 parameters
{
"type": "object",
"properties": {}
}pll_get_object_languagemanage_optionsResolve the Polylang language assigned to a specific post or term: code, name, locale. Returns has_language=false if the object has no language assigned yet.
Parameter Schema2 parameters
{
"type": "object",
"properties": {
"object_type": {
"type": "string",
"enum": [
"post",
"term"
],
"description": "Whether object_id is a post ID or a term ID."
},
"object_id": {
"type": "integer",
"description": "Post ID or term ID, per object_type."
}
},
"required": [
"object_type",
"object_id"
]
}pll_get_translationsmanage_optionsList a post's or term's translation siblings: language code mapped to the sibling object's ID. Does not include a language the object has no translation into. Read-only.
Parameter Schema2 parameters
{
"type": "object",
"properties": {
"object_type": {
"type": "string",
"enum": [
"post",
"term"
],
"description": "Whether object_id is a post ID or a term ID."
},
"object_id": {
"type": "integer",
"description": "Post ID or term ID, per object_type."
}
},
"required": [
"object_type",
"object_id"
]
}