'How can I change the WordPress Rest API response language?
I working on a python service that is connecting to my WordPress website (the default language on the website is Persian) using the WordPress Rest API feature. in some cases when I receive an error, the error is something like the below:
b'{"code":"rest_invalid_param","message":"\\u067e\\u0627\\u0631\\u0627\\u0645\\u062a\\u0631(\\u0647\\u0627\\u06cc) \\u0646\\u0627\\u0645\\u0639\\u062a\\u0628\\u0631: images","data":{"status":400,"params":{"images":"images[0] \\u0627\\u0632 \\u0646\\u0648\\u0639 object \\u0646\\u06cc\\u0633\\u062a."},"details":{"images":{"code":"rest_invalid_type","message":"images[0] \\u0627\\u0632 \\u0646\\u0648\\u0639 object \\u0646\\u06cc\\u0633\\u062a.","data":{"param":"images[0]"}}}}}'
Is there any way that I change the language of the API without changing the website language?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
