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.
Adds links to posts in other languages into the results of a WP REST API query for sites running the WPML plugin.
- Fix: Refactored into a class and namesapce (thanks @szepeviktor)
- Changed minimum required version to 5.2 (for PHP 7 support)
- 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!)
- Allows language switching by specifying 'lang' or 'wpml_lang' parameters on the query string.
- Typos in code fixed.
- First release.