Polylang Language API

Use Polylang 3.8.5 safely from WordPress plugins or classic themes. Covers guards, current/default language lookup, language fields and objects, language lists, localized home URLs, language switchers, translated post type/taxonomy registration, and common mistakes such as reading $_GET['lang'], assuming a current language exists in admin/REST/CLI, or hardcoding language URL prefixes. Use when code calls pll_current_language, pll_default_language, pll_languages_list, pll_the_languages, pll_home_url, pll_is_translated_post_type, pll_is_translated_taxonomy, pll_get_post_types, or pll_get_taxonomies.

Lonsdale201 Updated

File contents

Lonsdale201/wp-agent-skills/tree/main/polylang/polylang-language-api commit ea77996be1

Frequently asked questions

npx skillmds@latest add lonsdale201/polylang-language-api