List Polylang Languages
Lists the languages set up in Polylang with each one's code, locale, name, whether it is the default, its text direction and how many published posts are in it, plus the post types and taxonomies Polylang translates. Read-only. Start here: the language codes it returns are what the other Polylang abilities take.
Also known as: site languages, which languages is my site in, multilingual setup, Polylang languages.
| Property | Value |
|---|---|
| Ability slug | mosmcp/polylang-list-languages |
| Wire tool name | mosmcp__polylang-list-languages |
| Category | Polylang (mosmcp-polylang) |
| Plan | Pro |
Required access
| Requirement | Value |
|---|---|
| Capability | edit_posts |
| Minimum default role | Contributor |
| Annotations | readOnly: true · destructive: false · idempotent: true · openWorld: false |
Input schema
Takes no input. Send "input": {} (or omit input).
Output schema
| Field | Type | Required | Description |
|---|---|---|---|
| default_language | string | Yes | Code of the default language, or empty when no language is set up yet. |
| count | integer | Yes | |
| languages | object[] | Yes | |
| languages[].code | string | Yes | The language code the other abilities take, for example "fr". |
| languages[].name | string | Yes | |
| languages[].locale | string | Yes | WordPress locale, for example "fr_FR". |
| languages[].w3c | string | The code used in the page's lang attribute, for example "fr-FR". | |
| languages[].is_default | boolean | Yes | |
| languages[].is_rtl | boolean | Whether it is written right to left. | |
| languages[].order | integer | Its position in the language switcher. | |
| languages[].flag | string | Country code of its flag, or empty. | |
| languages[].active | boolean | False when it has been deactivated, so visitors cannot see it. | |
| languages[].post_count | integer | Published posts and pages in this language, as Polylang's Languages screen counts them. | |
| languages[].home_url | string | ||
| translated_post_types | string[] | Post types whose posts carry a language and can be translated. | |
| translated_taxonomies | string[] | Taxonomies whose terms carry a language and can be translated. | |
| languages_url | string | ||
| notes | string[] |
| << Previous | Next >> |
|---|---|
| Link Polylang Translations | Set Polylang Post Language |
For more information about the Secure MCP Server for WordPress plugin, explore the following resources:
Product Overview | Pricing | Try for Free | Documentation
If you have any questions regarding plugin configuration, pricing plans or licensing, please contact us or mail us at aisupport@xecurify.com.