=== WPML REST API === Contributors: shooper Donate link: http://shawnhooper.ca/ Tags: wpml, api, rest Requires at least: 5.2 Tested up to: 5.6 Stable tag: trunk License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html Adds links to posts in other languages into the results of a WP REST API query for sites running the WPML plugin. == Description == Adds links to posts in other languages into the results of a WP REST API query for sites running the WPML plugin. == Screenshots == 1. This screenshot shows an excerpt of the JSON returned by the WP REST API when a page has translations available == Changelog == = 1.1.1 (2021-01-10) = * Fix: Refactored into a class and namesapce (thanks @szepeviktor) * Changed minimum required version to 5.2 (for PHP 7 support) = 1.1 (2021-01-05) = * Fix: properly renders URLs for pages that have parent parents (Thank you @rburgst) * Fix: Respect home and allow filtering of language url (Thank you ghost contributor) * Fix: Updated WPML filters/functions to replace deprecated ones. * Fix: No longer returns draft translations * Fix: When adding new posts - PHP Fatal error: Uncaught Error: Cannot use object of type WP_Error as array (Thanks @darenzammit!) = 1.0.5 = * Allows language switching by specifying 'lang' or 'wpml_lang' parameters on the query string. * Typos in code fixed. = 1.0 = * First release. = 1.0 = * First release.