Home

Awesome

WPML REST API

Contributors: shooper
Donate link: http://shawnhooper.ca/
Tags: wpml, api, rest
Requires at least: 5.2
Tested up to: 6.4.2 Requires PHP: 7.4
Stable tag: trunk
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Get translations details with the WP REST API on sites running WordPress & WPML

Description

This plugin adds links to pages and posts in other languages into the results of a WP REST API query for sites running the WPML plugin.

It adds a "wpml_current_locale" string containing the locale code of the current response, and a "wpml_translations" array containing the available translations for this plugin.

Screenshots

  1. This screenshot shows an excerpt of the JSON returned by the WP REST API when a page has translations available

Changelog

2.0.1 (2024-01-07)

2.0.0 (2022-10-27)

1.1.4 (2022-05-31)

1.1.3 (2022-03-18)

1.1.2 (2021-06-27)

1.1.1 (2021-01-10)

1.1 (2021-01-05)

1.0.5

1.0