Plugin will allow you to fetch the WP-API (WP-JSON-API) call with a „lang“ variable. It will retrieve the right content from WPML/WP.
This only works with WPML and WP-API installed. I tested only with the latest version as of now:
* WPML 22.214.171.124
* WP REST API 1.2.1
Install the plugin as you would with any WordPress plugin in your wp-content/plugins/ directory or equivalent.
1. Activate the plugin through the ‚Plugins‘ menu in WordPress
1. Make a call to „http://yoursite/wp-json/posts/?lang=ja“ (in my case, its ja for Japanese, but it could be fr if you’re French!)
- Is this guaranteed to work
No. I threw it together in 5 minutes
- What about foo bar?
If you want foo bar fixed, email me at firstname.lastname@example.org
You bet your butt you can pay me for it 😉
There are no reviews for this plugin.
Mitwirkende & Entwickler
„WPML to WP API“ ist Open-Source-Software. Folgende Menschen haben an diesem Plugin mitgewirkt:Mitwirkende
- Initial release no guarantees