Let's say I have this api http://someUrlHere.com/wp-json/wp/v2/posts?categories=19&per_page=20 and I call it with GET method. How can I choose what language I want to receive the information? It should pe provided in 2 languages. Or how do I find out if it is provided only in English?
Activate WPML Translation Management and then you must add
lang=en
as parameter to your call:
http://someUrlHere.com/wp-json/wp/v2/posts?categories=19&per_page=20&lang=en
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With