Skip to content

Adds value `lang` and `translations` to WP REST api response for each Post and Page request for site running the Polylang Pro plugin.

License

Notifications You must be signed in to change notification settings

dannyvaughton/wp-rest-polylang-pro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

wp-rest-polylang

description

Adds polylang_translations and keeps lang to WP REST api response for each Post and Page request for site running the Polylang Pro plugin.

Values

lang

The locale value of the post

{
  [...]
  "lang": "en"
  [...]
}

translations

List of translation for the post

{
  [...]
  "polylang_translations": [
    {
      "lang": "fr",
      "id": 1
    }
  ],
  [...]
}

About

Adds value `lang` and `translations` to WP REST api response for each Post and Page request for site running the Polylang Pro plugin.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages